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

Home -> Community -> Usenet -> c.d.o.server -> Re: spool data into file without the select consult showing?

Re: spool data into file without the select consult showing?

From: R. Schierbeek <byteNospam_at_gmail.com>
Date: Wed, 22 Nov 2006 20:28:59 +0100
Message-ID: <4564a4c2$0$54835$dbd4b001@news.wanadoo.nl>


"B.-" <beby.akselrad_at_gmail.com> schreef in bericht
> Hi! I need to spool the result of a select into a file, but not the consult itself. Is there any
> way to do this?
> My code is:
>
> set termout off
> set pagesize 0
> set feedback off
> set verify off
> set linesize 2000
> set heading off
> set trimspool on
> spool c:\data.dat
> select 'whatever' from table1;
> spool off
>
> So in the data.dat file I get
>
> select 'whatever' from table1;
> data
> data
> data
> data
> retieved x lines
>
> Is there any way I can get only de "data" lines?
> Thanks!

set ECHO off

Met vriendelijke groeten

   Roelof Schierbeek; DBA Received on Wed Nov 22 2006 - 13:28:59 CST

Original text of this message

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