SQL*Plus User's Guide and Reference Release 8.1.5 A66736-01 |
|
Command Reference, 19 of 52
Deletes one or more lines of the buffer.
DEL [n|n m|n *|n LAST|*|* n|* LAST|LAST]
Refer to the following list for a description of each term or clause:
Enter DEL with no clauses to delete the current line of the buffer.
DEL makes the following line of the buffer (if any) the current line. You can enter DEL several times to delete several consecutive lines.
Note: DEL is a SQL*Plus command and DELETE is a SQL command. For more information about the SQL DELETE command, see the Oracle8i SQL Reference. |
Assume the SQL buffer contains the following query:
1 SELECT ENAME, DEPTNO 2 FROM EMP 3 WHERE JOB = 'SALESMAN' 4* ORDER BY DEPTNO
To make the line containing the WHERE clause the current line, you could enter
SQL> LIST 3 3* WHERE JOB = 'SALESMAN'
followed by
SQL> DEL
The SQL buffer now contains the following lines:
1 SELECT ENAME, DEPTNO 2 FROM EMP 3* ORDER BY DEPTNO
To delete the second line of the buffer, enter
SQL> DEL 2
The SQL buffer now contains the following lines:
1 SELECT ENAME, DEPTNO 2* ORDER BY DEPTNO
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|