|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
spool
I am trying to save output to a text files in ORACLE & DB2.
Can someone please show example on how to use SPOOL command. Also are there other commands that will accomplish the same results? TIA, VADA |
|
#2
|
|||
|
|||
|
spool command is very easy to use. you can run the spool command on SQL prompt and within a script, see the both example:
SQL>spool c:\orant\bin\myoutput.txt SQL>SELECT * FROM EMP / SQL>spool off within a script script1.sql spool c:\orant\bin\myoutput.txt SELECT * FROM emp / spool off -- [ End of script ] -- If you want to save the output in default driectory, don't specify the path with spool command. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > spool |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|