Accept command in Oracle
Posted on: June 2, 2010 at 12:00 AM
The ACCEPT command in SQL Plus is used to take the input from the user and then store in a variable. Learn how to use Accept command in Oracle's SQL Plus tool.

Accept command in Oracle

In this section we will see how to use the Accept command in SQL Plus.

The ACCEPT command in SQL Plus is used to take the input from the user and then store in a variable. This variable can be used to substitute some value in the sql command. Usage of the ACCEPT command:ADS_TO_REPLACE_1

 ACCEPT User input

ACC[EPT] variable [NUM[BER]|CHAR|DATE] [FORMAT format]
[DEFAULT default] [PROMPT text|NOPROMPT] [HIDE]

Following example shows how to use the Accept in SQLPlus.ADS_TO_REPLACE_2

SQL> select * from user where username='&user_name'
SQL> /
Enter value for user_name: Deepak
old 1: select username from user where username='&user_name'
new 1: select username from user where username='Deepak'
USERNAME
------------------------------
Deepak
1 row selected.

This way you can create you sql queries to generate the report, in which your user can input some values and based on that appropriate data is retrieved from database.

You can use SQL Plus to generate many types of reports. The accept command will be useful if you want your report to be generated based on the user input.ADS_TO_REPLACE_3 More Tutorials on roseindia.net for the topic Accept command in Oracle.
Accept command in Oracle
Accept command in Oracle In this section we will see how to use the Accept command in SQL Plus. The ACCEPT command in SQL Plus is used to take the input from... to substitute some value in the sql command. Usage of the ACCEPT command:ADS_TO_REPLACE_1
 
ModuleNotFoundError: No module named 'accept'
to install padas library. You can install accept python with following command...ModuleNotFoundError: No module named 'accept'  Hi, My Python... 'accept' How to remove the ModuleNotFoundError: No module named 'accept'
 
ModuleNotFoundError: No module named 'paymob_accept'
with following command: pip install paymob_accept After...ModuleNotFoundError: No module named 'paymob_accept'  Hi, My... 'paymob_accept' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'paymob_accept'
with following command: pip install paymob_accept After...ModuleNotFoundError: No module named 'paymob_accept'  Hi, My... 'paymob_accept' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'accept-types'
with following command: pip install accept-types After the installation...ModuleNotFoundError: No module named 'accept-types'  Hi, My Python... 'accept-types' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'flask_accept'
with following command: pip install flask_accept After the installation...ModuleNotFoundError: No module named 'flask_accept'  Hi, My Python... 'flask_accept' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'django-accept-header'
django-accept-header python with following command: pip install django...ModuleNotFoundError: No module named 'django-accept-header'  Hi...: No module named 'django-accept-header' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'mastercard-mpqr-accept'
install mastercard-mpqr-accept python with following command: pip install...ModuleNotFoundError: No module named 'mastercard-mpqr-accept'  Hi...: No module named 'mastercard-mpqr-accept' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'parse-accept-language'
install parse-accept-language python with following command: pip install parse...ModuleNotFoundError: No module named 'parse-accept-language'  Hi...: No module named 'parse-accept-language' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'accept-header-match'
accept-header-match python with following command: pip install accept-header...ModuleNotFoundError: No module named 'accept-header-match'  Hi, My... named 'accept-header-match' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'django-accept-header'
django-accept-header python with following command: pip install django...ModuleNotFoundError: No module named 'django-accept-header'  Hi...: No module named 'django-accept-header' How to remove the ModuleNotFoundError
 
Oracle - SQL
D:\oracle\ora90\BIN\imp type this command if your are using oracle 9i...Oracle  I have one .dmp file. I want to import this file into oracle 9i and oracle 10g. wat is procedure and stepts. thanks u  Open
 
ModuleNotFoundError: No module named 'oracle'
to install padas library. You can install oracle python with following command...ModuleNotFoundError: No module named 'oracle'  Hi, My Python... 'oracle' How to remove the ModuleNotFoundError: No module named 'oracle'
 
Command Line Arguments in Java Program
, suppose a program named CmndLineArguments that accept command line arguments... Command Line Arguments in Java Program       Java application can accept any number of arguments
 
COMMAND LINE ARGUMENTS
COMMAND LINE ARGUMENTS  JAVA PROGRAM TO ACCEPT 5 COMMAND LINE ARGUMENTS AND FIND THE SUM OF THAT FIVE.ALSO FIND OUT LARGEST AMONG THAT 5   Hi Friend, Try the following code: import java.util.*; class
 
Oracle 9i database problem
Oracle 9i database problem  Hi Somebody has given the solution but i... Oracle 9i in my laptop.and i got sql+ page ok.i have gone to control panel->odbc->in that i correctley configured DNS and TNS and tested the Oracle
 
ModuleNotFoundError: No module named 'cx-Oracle'
command: pip install cx-Oracle After the installation of cx-Oracle...ModuleNotFoundError: No module named 'cx-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cx
 
ModuleNotFoundError: No module named 'cx-Oracle'
command: pip install cx-Oracle After the installation of cx-Oracle...ModuleNotFoundError: No module named 'cx-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cx
 
ModuleNotFoundError: No module named 'cx-Oracle'
command: pip install cx-Oracle After the installation of cx-Oracle...ModuleNotFoundError: No module named 'cx-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cx
 
ModuleNotFoundError: No module named 'cx-Oracle'
command: pip install cx-Oracle After the installation of cx-Oracle...ModuleNotFoundError: No module named 'cx-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cx
 
ModuleNotFoundError: No module named 'cy-Oracle'
command: pip install cy-Oracle After the installation of cy-Oracle...ModuleNotFoundError: No module named 'cy-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cy
 
ModuleNotFoundError: No module named 'loki-oracle'
with following command: pip install loki-oracle After the installation of loki...ModuleNotFoundError: No module named 'loki-oracle'  Hi, My Python... 'loki-oracle' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'oracle-ct'
command: pip install oracle-ct After the installation of oracle-ct...ModuleNotFoundError: No module named 'oracle-ct'  Hi, My Python... 'oracle-ct' How to remove the ModuleNotFoundError: No module named 'oracle
 
ModuleNotFoundError: No module named 'oracle-eth'
with following command: pip install oracle-eth After the installation of oracle...ModuleNotFoundError: No module named 'oracle-eth'  Hi, My Python... 'oracle-eth' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'oracle_river'
with following command: pip install oracle_river After the installation...ModuleNotFoundError: No module named 'oracle_river'  Hi, My Python... 'oracle_river' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'oracle-select'
with following command: pip install oracle-select After...ModuleNotFoundError: No module named 'oracle-select'  Hi, My... 'oracle-select' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'oracle-version'
python with following command: pip install oracle-version After...ModuleNotFoundError: No module named 'oracle-version'  Hi, My... named 'oracle-version' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'padding-oracle'
python with following command: pip install padding-oracle After...ModuleNotFoundError: No module named 'padding-oracle'  Hi, My... named 'padding-oracle' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'pandas-oracle'
with following command: pip install pandas-oracle After...ModuleNotFoundError: No module named 'pandas-oracle'  Hi, My... 'pandas-oracle' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'ppp_oracle'
with following command: pip install ppp_oracle After the installation of ppp...ModuleNotFoundError: No module named 'ppp_oracle'  Hi, My Python... 'ppp_oracle' How to remove the ModuleNotFoundError: No module named 'ppp
 
ModuleNotFoundError: No module named 'storm_oracle'
with following command: pip install storm_oracle After the installation...ModuleNotFoundError: No module named 'storm_oracle'  Hi, My Python... 'storm_oracle' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'tap-oracle'
with following command: pip install tap-oracle After the installation of tap...ModuleNotFoundError: No module named 'tap-oracle'  Hi, My Python... 'tap-oracle' How to remove the ModuleNotFoundError: No module named 'tap
 
ModuleNotFoundError: No module named 'tap-oracle'
with following command: pip install tap-oracle After the installation of tap...ModuleNotFoundError: No module named 'tap-oracle'  Hi, My Python... 'tap-oracle' How to remove the ModuleNotFoundError: No module named 'tap
 
ModuleNotFoundError: No module named 'tap-oracle'
with following command: pip install tap-oracle After the installation of tap...ModuleNotFoundError: No module named 'tap-oracle'  Hi, My Python... 'tap-oracle' How to remove the ModuleNotFoundError: No module named 'tap
 
ModuleNotFoundError: No module named 'tap-oracle'
with following command: pip install tap-oracle After the installation of tap...ModuleNotFoundError: No module named 'tap-oracle'  Hi, My Python... 'tap-oracle' How to remove the ModuleNotFoundError: No module named 'tap
 
ModuleNotFoundError: No module named 'tux_oracle'
with following command: pip install tux_oracle After the installation of tux...ModuleNotFoundError: No module named 'tux_oracle'  Hi, My Python... 'tux_oracle' How to remove the ModuleNotFoundError: No module named 'tux
 
ModuleNotFoundError: No module named 'whois-oracle'
with following command: pip install whois-oracle After the installation...ModuleNotFoundError: No module named 'whois-oracle'  Hi, My Python... 'whois-oracle' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'whois-oracle'
with following command: pip install whois-oracle After the installation...ModuleNotFoundError: No module named 'whois-oracle'  Hi, My Python... 'whois-oracle' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'whois-oracle'
with following command: pip install whois-oracle After the installation...ModuleNotFoundError: No module named 'whois-oracle'  Hi, My Python... 'whois-oracle' How to remove the ModuleNotFoundError: No module named '
 
ModuleNotFoundError: No module named 'cx-Oracle'
command: pip install cx-Oracle After the installation of cx-Oracle...ModuleNotFoundError: No module named 'cx-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cx
 
ModuleNotFoundError: No module named 'cy-Oracle'
command: pip install cy-Oracle After the installation of cy-Oracle...ModuleNotFoundError: No module named 'cy-Oracle'  Hi, My Python...-Oracle' How to remove the ModuleNotFoundError: No module named 'cy
 
ModuleNotFoundError: No module named 'filebeat-oracle'
python with following command: pip install filebeat-oracle After...ModuleNotFoundError: No module named 'filebeat-oracle'  Hi, My... named 'filebeat-oracle' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'holiday-oracle'
python with following command: pip install holiday-oracle After...ModuleNotFoundError: No module named 'holiday-oracle'  Hi, My... named 'holiday-oracle' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'HTSQL-ORACLE'
with following command: pip install HTSQL-ORACLE After the installation...ModuleNotFoundError: No module named 'HTSQL-ORACLE'  Hi, My Python... 'HTSQL-ORACLE' How to remove the ModuleNotFoundError: No module named '
 
oracle
oracle   sir now am doing one project , my frond end is vb and backend is oracle. so 1> how can i store the image in my field 2> how can i back up the table into .txt file
 
ModuleNotFoundError: No module named 'cx_oracle_on_ctypes'
_oracle_on_ctypes python with following command: pip install cx_oracle...ModuleNotFoundError: No module named 'cx_oracle_on_ctypes'  Hi, My... named 'cx_oracle_on_ctypes' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'cx_oracle_on_ctypes'
_oracle_on_ctypes python with following command: pip install cx_oracle...ModuleNotFoundError: No module named 'cx_oracle_on_ctypes'  Hi, My... named 'cx_oracle_on_ctypes' How to remove the ModuleNotFoundError
 
ModuleNotFoundError: No module named 'nodeconductor-paas-oracle'
. You can install nodeconductor-paas-oracle python with following command: pip...ModuleNotFoundError: No module named 'nodeconductor-paas-oracle'  Hi...: No module named 'nodeconductor-paas-oracle' How to remove
 
ModuleNotFoundError: No module named 'oracle-db-query'
python with following command: pip install oracle-db-query After...ModuleNotFoundError: No module named 'oracle-db-query'  Hi, My... named 'oracle-db-query' How to remove the ModuleNotFoundError: No module named
 
ModuleNotFoundError: No module named 'oracle-drm-api'
python with following command: pip install oracle-drm-api After...ModuleNotFoundError: No module named 'oracle-drm-api'  Hi, My... named 'oracle-drm-api' How to remove the ModuleNotFoundError: No module named
 

Ads

Related Tags for Accept command in Oracle:


Ads

 
Advertisement null

Ads