How do i execute a query sayselect * from tablename and write reasult to a text file say c: kk.txt

Questions by vssandilya   answers by vssandilya

Showing Answers 1 - 3 of 3 Answers

Tejas

  • Jun 12th, 2006
 

spool c:<your text file name with path>
@<your SQL file name with absolute path which contains the query>
spool off

  Was this answer useful?  Yes

Sarfaraz Ahmad Khan

  • Jul 18th, 2006
 

yeah its very simple

use the syntax like this:

spool <somefilename>  (you can give the path also like c:sarfarazxyz.txt)

<now your query>

and to see that whether the result is actually stored in the file or not go to the file menu>open and select the name of your file you will get your result.

Note that when you noyt give the extension then the default file extension will be .lst

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions