Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Export from Oracle in comma-separated format

Re: Export from Oracle in comma-separated format

From: Gary Assa <gsa_at_li.net>
Date: 1997/01/22
Message-ID: <5c5kth$fuo@linet01.li.net>#1/1

>Is there an easy way to dump an Oracle table in comma-separated format?
>I wrote a simple SQL report, changing the column separator to ',' but
>all the columns are padded with spaces. I just want
>value1,value2,value3 not value1 ,value2 , etc.
>

select col1||','||col2||','||...coln
from table;

Or if you need values in quotes:

select '"'||col1||'","'||col2...
from table;

-- 
=========================================================
            http://www.li.net/~gsa/index.html
This is my signature file, not part of this mail message.
Received on Wed Jan 22 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US