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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stripping the first 2 lines from a spool file

  • Thread starter Thread starter bi
  • Start date Start date
Status
Not open for further replies.

bi

Technical User
Joined
Apr 13, 2001
Messages
1,552
Location
US
I am trying to write a sql script to pull data from a table and put it into a spool file. All I want in the file is the data.

The first two lines of the spool file contain the labels for the fields, followed by a line. Then the data starts.

How do I get those first two lines to NOT go to the spool file?
 
Oh, and I also need the last line that tells how many rows were selected to not print to the spool file, either.

Thanks.
 
You will also need:

set head off

Consultant/Custom Forms & PL/SQL
Oracle 8.1.7 - Windows 2000
 
When I type all three of those commands (set feedback off, set pages 0, set head off) I get this error:

MGR-00110: illegal SET option

Any other suggestions?
 
Are you in a SQL*Plus session or something else?
 
svrmgrl
 
Use SqlPlus instead...It has the added capabilities needed to do what you want, and it is the recommended method of accessing data. svrmgrl is being phased out...

[profile]
 
Thanks, Turkbear. That did it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top