Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CSV_BUILDER: Convert a query to CSV

Eric OlsonFeb 2 2025

The other day I needed to generate some .csv files and was surprised there was no straightforward way of doing that. I know sqlcl has the select /*csv*/ feature, but I was trying to automate this. The apex_data_export package requires APEX and I was on an older version that predates that package anyway. So I wrote a quick package that takes a SQL query and generates CSV data as a CLOB.

CSV_BUILDER is available on GitHub.

Comments
Post Details
Added on Feb 2 2025
2 comments
205 views