If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Spool options

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-03, 10:17
vukvucko vukvucko is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Question Spool options

I have problem with spool data in SQL*plus!

I need to export data from table in csv file. I create a query but when i go to sql*plus i need to enter
spool ***.txt
before i let qury to work. Now I get a text file in wich first is the syntax of the query and than resultats .

What i really wont are only the datas with out any other text.
HELLPPPP
Reply With Quote
  #2 (permalink)  
Old 11-20-03, 07:43
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Spool options

You need some SET commands in your SQL script before the SPOOL command, e.g.:

SET FEEDBACK OFF
SET PAGESIZE 0
SET VERIFY OFF
SET TERM OFF

Then after the SPOOL OFF reset them:

SET FEEDBACK ON
SET PAGESIZE 20
SET VERIFY ON
SET TERM ON

See SQL Plus docs for lots more SET commands you can use!
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On