dbTalk Databases Forums  

Data Export

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Data Export in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pierre
 
Posts: n/a

Default Data Export - 07-17-2003 , 01:50 AM






I have the following table:

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

And I insert into this table the following values:

insert into t values ('X1','X2','X3');

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');

I found an option in TOAD which can provide me this format.
Ufortunately I need it to run independently.

Regards,
Pierre

Reply With Quote
  #2  
Old   
Svend Jensen
 
Posts: n/a

Default Re: Data Export - 07-17-2003 , 02:31 PM






Pierre wrote:

Quote:
I have the following table:

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

And I insert into this table the following values:

insert into t values ('X1','X2','X3');

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');

I found an option in TOAD which can provide me this format.
Ufortunately I need it to run independently.

Regards,
Pierre
Create it as:
set pages 0
set heading off
.......
spool inserts.sql
select 'insert into ......
values( ''''||t1||''''||','||.................... ||';'
from t ;
spo off
@inserts


/Svend



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.