|
|
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 |
|
There is no answer at this time. |
|
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. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |