Command |
Processing |
A[PPEND] text |
Text gets added to the end of the current line |
C[HANGE] /text/ |
Deletes the specified text from the current line |
C[HANGE] /oldtext/newtext |
Changes the specified old text to the specified new text |
CL[EAR] BUFF[ER] |
Clears the SQL buffer |
DEL |
Deletes the current line |
I[NPUT] |
Inserts lines |
I[NPUT] text |
Inserts the specified text as a line after current line |
L[IST] |
Lists the lines in the SQL buffer |
L[IST] n |
Lists line n in the SQL buffer |
L[IST] m n |
Lists the range of lines m to n in the SQL buffer |
n |
Makes line n the current line |
n text |
Replaces line n with the specified text |
0 text |
Inserts a line at the beginning (before line 1) |
R[UN] |
Displays and executes the code in the SQL buffer |
/ |
Executes the code in the SQL buffer |
Command |
Processing |
SAV[E] file |
Saves contents of SQL buffer - default extension is .sql |
SAV[E] file REP[LACE] |
Saves contents of SQL buffer overwriting existing file |
SAV[E] file APP[END] |
Saves contents of SQL buffer by adding to existing file |
GET file |
Writes file to SQL buffer - default extension is .sql |
STA[RT] or @filename |
Runs/executes contents of saved command file |
ED[IT] |
Brings up editor (notepad) to edit contents of SQL buffer - saves to aftedt.buf |
ED[IT] file |
Brings up editor to edit saved file |
SPO[OL] file [OFF|OUT] |
Stores query results in a file. OFF closes spool file and OUT closes and sends to printer |
EXIT |
Leaves SQL |