Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to store output of Select statement in a file?

Re: How to store output of Select statement in a file?

From: Paul722532 <paul722532_at_aol.com>
Date: 1998/03/04
Message-ID: <19980304021600.VAA11022@ladder02.news.aol.com>#1/1

If this is being done in SQL*Plus which it looks like it is then you need to spool the output

i.e

SQL> spool output.txt
SQL> SELECT * FROM emp;
SQL> spool off

everything within the spool on and off commands will be written to output.txt.

Cheers,

Paul

P.S. This is my first ever posting so if it goes horribly wrong I apologise in advance. Received on Wed Mar 04 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US