| SQL*Plus Quick Reference Release 8.1.5 A66735-01 |
|
SQL*Plus Quick Reference, 5 of 10
Use the following commands to edit SQL commands and PL/SQL blocks.
A[PPEND] text
Adds specified text to the end of the current line in the SQL buffer. To separate text from the preceding characters with a space, enter two spaces between APPEND and text. To append text that ends with a semicolon, end the command with two semicolons (SQL*Plus interprets a single semicolon as a command terminator).
C[HANGE] sepchar old [sepchar [new [sepchar]]]
DEL [n|n m|n *|n LAST|*|* n|* LAST|LAST]
I[NPUT] [text]
L[IST] [n|n m|n *|n LAST|*|* n|* LAST|LAST]
Use the following commands to create and modify command files.
@ file_name[.ext] [arg ...]
@@ file_name[.ext]
ED[IT] [file_name[.ext]]
GET file_name[.ext] [LIS[T]|NOL[IST]]
REM[ARK]
SAV[E] file_name[.ext] [CRE[ATE]|REP[LACE]|APP[END]]
STORE {SET} file_name[.ext] [CRE[ATE]|REP[LACE]|APP[END]]
STA[RT] file_name[.ext] [arg ...]
WHENEVER OSERROR
{EXIT [SUCCESS|FAILURE|n|variable|:BindVariable] [COMMIT|ROLLBACK]|CONTINUE [COMMIT|ROLLBACK|NONE]}
WHENEVER SQLERROR
{EXIT [SUCCESS|FAILURE|WARNING|n|variable|:BindVariable] [COMMIT|ROLLBACK]|CONTINUE [COMMIT|ROLLBACK|NONE]}
Use the following commands to write interactive commands.
ACC[EPT] variable [NUM[BER]|CHAR|DATE] [FOR[MAT] format] [DEF[AULT] default] [PROMPT text|NOPR[OMPT]] [HIDE]
DEF[INE] [variable]|[variable = text]
PAU[SE] [text]
PROMPT [text]
UNDEF[INE] variable ...
Use the following commands to create and display bind variables.
PRI[NT] [variable ...]
VAR[IABLE] [variable {NUMBER|CHAR|CHAR (n)|NCHAR|NCHAR (n)|VARCHAR2 (n)| NVARCHAR2 (n)|CLOB|NCLOB|REFCURSOR}]
Use the following symbols to create substitution variables and parameters for use in command files.
&n
&user_variable, &&user_variable
Indicates a substitution variable in a SQL or SQL*Plus command. SQL*Plus substitutes the value of the specified user variable for each substitution variable it encounters. If the user variable is undefined, SQL*Plus prompts you for a value each time an "&" variable is found, and the first time an "&&" variable is found.
. (period)
|
|
Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|