Google Answers Logo
View Question
 
Q: SQLplus to file instead of buffer how? ( No Answer,   1 Comment )
Question  
Subject: SQLplus to file instead of buffer how?
Category: Computers > Programming
Asked by: iterative-ga
List Price: $7.00
Posted: 21 Oct 2004 16:35 PDT
Expires: 22 Oct 2004 07:37 PDT
Question ID: 418265
I am learning to query a database on in with? oracle9i with SQLplus and right
now I run a query but the result is like 3 names repeated over and
over again at the prompt. I have a feeling people dont do this in
companies to see the output of the query is so I want to know how to
write it to a file. I cannot understand oracle documentation.

Thanks
Answer  
There is no answer at this time.

Comments  
Subject: Re: SQLplus to file instead of buffer how?
From: paul_schleifer-ga on 22 Oct 2004 05:33 PDT
 
Start SQL+ and type "SPOOL" followed by the full path and name of the
file you want to save to. E.g:

SQL> SPOOL c:\MyFolder\MyFile.txt


Then enter your query. E.g.:

SQL> select * from MyTable;


When you've finished running your queries, type "SPOOL OFF" to stop
sending your output to your file. E.g.:

SQL> SPOOL OFF


There are lots of ways of formatting the output, but if the
documentation is a problem for you it might be easiest to change the
format using your prefered word processor.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy