Link to home
Start Free TrialLog in
Avatar of Billy Ma
Billy MaFlag for Hong Kong

asked on

How to skip the extra text when using SPOOL in SQLPLUS

I written the following code, but the output is

SQL> select database from params;
MYDB                                                                                            

1 row selected.

SQL> spool off;

How to ONLY SPOOL THE RESULT WHICH is MYDB is my text file but not the other text?
Thanks!
set pages 0;
set heading off
set echo off;
spool c:\321.txt
select database from params;
spool off;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of GGuzdziol
GGuzdziol
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Sujith
Sujith
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Billy Ma

ASKER

Can anyone explain each option?
Are there any (Official) website explain these options?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial