![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like a general-purpose PL/SQL proc for outputting the contents of a table or view to a text file, with the field values separated by a delimiter. Currently I have a proc for each table that I export, in which I use a cursor to select the records, construct each line by concatenating the fields with the delimiter in between, and output to the file with UTL_FILE.PUT_LINE. Is there a way to generalize this to work for any table? The thought would be to pass in the table name as a parameter, along with the file path and file name of the destination file. Any suggestions would be greatly appreciated! |
![]() |
| Thread Tools | |
| Display Modes | |
| |