How do you spool SQL output in Unix?

How do you spool SQL output in Unix?
Answer
file using UNIX. Image removed by sender.
…
  1. In SQL prompt first run the sql command whose o/p u want 2 spool;
  2. Then write spool <drivename:><filename.txt>
  3. Then at sql prompt type / (it will run the previous SQl query in buffer);
  4. Once the output ends, then at sql prompt say (sql > spool off);
 

Tìm kiếm

Back
Top