Sunday, January 24, 2016

Oracle simple function to create CSV.

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.



No comments:

Post a Comment

Please leave your relevant comments and questions only.

AWS solution architect exam questions.

Before taking this let it be known that the questions are sourced from random sites using simple algorithms. The authenticity of questions a...