Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

external file

Status
Not open for further replies.

deulyd

Programmer
Oct 17, 2001
106
CA
Is there another way to write to an external file than with the UTL_FILE package?

thanks
 
You could use the SPOOL command and then do a SQL statement.

SPOOL MyFile.txt

SELECT *
FROM MyTable;

SPOOL OFF

If you wantted to make it comma delimeted, select your specific fields and concatenate using the pipes (||). Terry M. Hoey
 
SPOOL will only work from SQL*Plus. If you want to write to a file from within a PL/SQL program, I think UTL_FILE is about as good as it gets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top