Oct 19, 2001 #1 deulyd Programmer Oct 17, 2001 106 CA Is there another way to write to an external file than with the UTL_FILE package? thanks
Oct 19, 2001 #2 THoey IS-IT--Management Jun 21, 2000 2,142 US 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 Upvote 0 Downvote
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
Oct 19, 2001 #3 carp MIS Sep 16, 1999 2,622 US 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. Upvote 0 Downvote
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.