Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make the query not appear in the spooled file

Status
Not open for further replies.

DoubleH

Programmer
Dec 17, 2001
58
0
0
GB
Hi,
I have written the following scipt:
sqlplus uname/pwd <<here
spool txt
select * from emp;
spool off;
here

Now I don't want the query to appear in the spooled file..
How could I do it?..Is there any set _____ off????
And also I would like to make the column separator as | instead of space.
Could anyone of You pls help me out???

Thanks & Regards,
DoubleH
Thanks & Regards,
DoubleH
 

Basically, I use the following to download a text file without any header and feedback;

set heading off
set termout off
set verify off
set feedback off
set show off

But I think, SHOW is the one that hides the SQL command. Robbie

&quot;The rule is, not to besiege walled cities if it can possibly be avoided&quot; -- Art of War
 
Hi

To get a column separator to be a '|' you need to....

'SET COLSEP |'

Hope it helps

James
 
Hi,
Thanks for the reply.
But I am not able to hide the SQL stmt. Is there any way of doing it.

Thanks & Regards,
DoubleH Thanks & Regards,
DoubleH
 

i got it!

SET ECHO OFF
Robbie

&quot;The rule is, not to besiege walled cities if it can possibly be avoided&quot; -- Art of War
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top