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: Data Export - Urgent Training

Re: Data Export - Urgent Training

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: 17 Jul 2003 04:52:02 -0700
Message-ID: <1a75df45.0307170352.45c8cc56@posting.google.com>


pierre.olaru_at_citicorp.com (Pierre) wrote

> create table t (
> t1 varchar2(35),
> t2 varchar2(35),
> t3 varchar2(35));

<snipped>
> I need to export it as a flat file in which each record should be in
> the insert data format, e.g. insert into t values ('X1','X2','X3');

Standard SQL outputting data in CSV format: SELECT
  t1||','||t2||','||t3
FROM t

Spool to file (e.g. using something like SQL*Plus).

You also may want to enclose character columns with double quotes.

Alternatively, you may want to consider using Oracle's Export and Import utilities.

--
Billy
Received on Thu Jul 17 2003 - 06:52:02 CDT

Original text of this message

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