This PL/SQL code function will quickly help to write CSV without having to code a single line.
Just change the query argument to function. One will need a writable directory as a utl_file_dir parameter from init.ora or pfile , or a stored directory object. Make sure you have read access to operating system directory you are supplying else it does not make much sense to run a program at all.
You can create a database object as well just copy and replace function definition with create or replace function.
Just change the query argument to function. One will need a writable directory as a utl_file_dir parameter from init.ora or pfile , or a stored directory object. Make sure you have read access to operating system directory you are supplying else it does not make much sense to run a program at all.
You can create a database object as well just copy and replace function definition with create or replace function.
Comments
Post a Comment
Please leave your relevant comments and questions only.