Executes the SQL command or PL/SQL block currently stored in the SQL buffer.
Syntax
/
Usage Notes
You can enter a slash (/) at the command prompt or at a line number prompt of a multi-line command.
The slash command functions similarly to RUN, but does not list the command in the buffer on your screen.
Executing a SQL command or PL/SQL block using the slash command will not cause the current line number in the SQL buffer to change unless the command in the buffer contains an error. In that case, SQL*Plus changes the current line number to the number of the line containing the error.
Example
To see the SQL command(s) you will execute, you can list the contents of the buffer:
SQL> LIST 1* SELECT ENAME, JOB FROM EMP WHERE ENAME = 'JAMES'
Enter a slash (/) at the command prompt to execute the command in the buffer:
SQL> /
For the above query, SQL*Plus displays the following output:
ENAME JOB ---------- --------- JAMES CLERK