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!

Create csv file for data in tables

DrMorphDec 11 2013 — edited Dec 12 2013

Hi All,

I need to "export" data for about 60 tables in one of my databases to a csv file format using a "|" as a separator.

I know I can do this using a query like:

select col1 || '|' || col2 || '|' || col3 from table;

Some of my tables have more than 50 columns so I'm guessing there is an easier way to do this than to construct select SQL statements for each table?

Thanks in advance.

This post has been answered by Manik on Dec 11 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2014
Added on Dec 11 2013
10 comments
26,691 views