SQL Plus: A Command Line DOS-like Interface Which Can Provide Users An Environment To Execute
SQL Plus: A Command Line DOS-like Interface Which Can Provide Users An Environment To Execute
SQL Plus: A Command Line DOS-like Interface Which Can Provide Users An Environment To Execute
SQL statements and PL/SQL statements to Oracle database server. Users can work under
SQL*PLUS environment to:
ACCEPT Accept a value from the user and place it into a variable ACC
APPEND Add text to the end of the current line of the SQL statement in the buffer APP
CHANGE Replace text on the current line of the SQL statement with new text C
CONNECT Connect to Oracle database or to the same database under a different user CONN
COPY Copy data from one table to another in the same or different databases
EDIT Edit the current SQL statement in the buffer using an external editor ED
GET Load a SQL statement into the buffer but do not execute it
Description
Command
name Abbre
INPUT Add one or more lines to the SQL statement in the buffer I
START Load a SQL statement located in a script file and run that SQL statement STA
TIMING Used to time the execution of SQL statements for performance analysis TIMI
SQL*Plus is the primary interface to the Oracle Database server, which provides a powerful yet
easy-to-use environment for user to query, define, and control data.
You can logon SQL*PLUS from DOS environment or from SQL*PLUS Dialog box
Or
SQL*PLUS Command:
SQL*Plus commands are used to set options for SQL*Plus, format reports, edit files, edit the command
buffer, and so on. SQL*Plus commands do not interact with the database. These commands do not have
to be terminated with a semicolon (;) (as is the case with SQL commands).
Examples:
Or
SQL> @ C:\test.sql
Or
SQL> /
SQL> ED
Or
SQL> LIST
SQL> LIST
SQL> 1
SQL> LIST
SQL> 1
SQL> LIST
SQL> LIST
SQL> DEL 3
SQL> LIST
SQL> LIST
FROM emp;
empno NUMBER,
sal NUMBER);
SQL> SELECT *
FROM test;
SQL> /
Or
SQL> RUN
SQL> RUN
SQL> RUN