I work with an Oracle database - the only way to access it through SQL Developer. Part of my work involves exporting large tables to csv files to move to another group. Since this is basically a nanny system, I was looking for a way to automate the export process.
I would like to have a procedure like this:
PROCEDURE_EXAMPLE(table_in in VARCHAR2, file_out in VARCHAR2)
where table_in is the table I need to export, and it exports the table to a series of csv files called "file_out_1.csv", "file_out_2.csv", etc., each of which contains no more than 5 million rows.
Is it possible to create such a procedure?
source share