Oct 19, 2001 #1 deulyd Programmer Joined Oct 17, 2001 Messages 106 Location 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 Joined Jun 21, 2000 Messages 2,142 Location 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 Joined Sep 16, 1999 Messages 2,622 Location 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.