Reputation: 31
I want to export/extract the results of the query at once, without running the query first and only then after getting the result. How can I do it?
Upvotes: 3
Views: 30251
Reputation: 12355
If you want to achieve this using Toad:
Upvotes: 3
Reputation: 2182
You can write a script that will be run from the command line (Linux/Windows) and redirect the output (using ">" sign) to a file. Still you have to know how to use SQL*PLUS...
Upvotes: 3
Reputation: 4511
Use SPOOL
directive to output results directly to file. This will work in plain SQLPLUS also.
Upvotes: 1