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

Home -> Community -> Usenet -> c.d.o.server -> Re: Converting oracle table's data into csv on client computer

Re: Converting oracle table's data into csv on client computer

From: Jaap W. van Dijk <j.w.vandijk.removethis_at_hetnet.nl>
Date: Sat, 23 Jul 2005 22:26:44 +0200
Message-ID: <pv95e19ci27svs78hinmbisbr2m4r73b8g@4ax.com>


On 22 Jul 2005 02:15:14 -0700, "nirav" <shivam71_at_gmail.com> wrote:

>...
>to have a table or more than one table converted to a
>csv (comma seperated value) format.
>(Oracle 9i on solaris).
>...

Assuming the delimiter is a comma, I use

        set colsep ,

then spool

        SELECT * ... and then remove the spaces in the spoolfile around the commas with the Unix command

        sed "s/ *, */g" spoolfile > file2

Jaap. Received on Sat Jul 23 2005 - 15:26:44 CDT

Original text of this message

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