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: How does one export an Oracle table to a Comma Delimited Flat File

Re: How does one export an Oracle table to a Comma Delimited Flat File

From: Kbat <kbatsche_at_yahoo.com>
Date: Sat, 11 Dec 1999 02:29:32 -0700
Message-ID: <82t5bi$ftk$1@nnrp03.primenet.com>


With PL/SQL try

dbms_output.put_line(var1||","||var2||","||var3);

<budgielover_at_yahoo.com> wrote in message news:82p476$icl$1_at_nnrp1.deja.com...
> I need to export an oracle table to a csv file by using SQLPLUS
> I've tried using:
> SQL>set colsep ","
> but Oracle tabs all the columns automactically leaving unwanted spaces
> between fields
> I've also tried using:
> select col1||',',col2||',', ... from table_name;
> but it also has the spacing problem
>
> If you know how to solve this or if you know any fancy utility like bcp
> that will allow exporting table to delimited file.. that will be great!
>
> any help will be greatly appreciated!
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Sat Dec 11 1999 - 03:29:32 CST

Original text of this message

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