Slide 11.2: Using SQL*Plus: the Oracle interface Slide 11.4: Using SQL*Plus: the Oracle interface (cont.) Home |
EDIT
invokes a line editor on the contents of the specified file or on the contents of the buffer.
SQL> edit 2 q‘;’, run, or ‘/’
SQL> select * from customers 2 where name = 'Pokemon';@filename
GET
loads a host operating system file into the SQL buffer.
SAVE
stores the SQL buffer's contents in a host operating system file.
HOST
executes a host system command without leaving the SQL*Plus.
SQL> host date Wed Feb 11 09:54:03 CST 2004 SQL> host sh exer1spool [ file_name|OFF|OUT ]
SQL> spool results.lst SQL> select * from customers; SQL> spool off SQL> host cat results.lst