| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Sql output .Urgent help needed folks
mark_brehmen_at_yahoo.com (mark) wrote in message news:<fa4781e4.0112182358.4c5b9ea3_at_posting.google.com>...
> I have a Sql , say select * from emp
>
> I want to spool only the output to an Sql File. How
> should i do it?. Is there some trick?
No trick here....
Sqlplus -s Scott/tiger << !EOF
Set Heading off
set feedback off
set pagesize 1000
set linesize 1000
Spool My.LST
Select * from Emp;
Spool Off
Exit
!EOF
There that does the Trick
HTH
>
> SET SPOOL On will spool the SQL also, i dont want that to happen
>
> Any help appreciated folks.
Regards,
Ganesh R
Received on Wed Dec 19 2001 - 07:31:23 CST
![]() |
![]() |