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: Generating SQL script for table filling

Re: Generating SQL script for table filling

From: Jerry Gitomer <jgitomer_at_ictgroup.com>
Date: Tue, 19 May 1998 12:55:26 -0400
Message-ID: <3561B97E.65E4@ictgroup.com>


Hi Jan,

How about

SELECT 'INSERT INTO <table_name> VALUES ('||col_1||','col_2');' FROM <table_name>;

I know it is a pain in the nect to write this select statement, but I think it will do what you want.

Regards

Jerry

Jan Januska wrote:
>
> Please,
> How do I get quickly (using some tool or script) a SQL script containing
> INSERT commands that fill table.
> Value to insert must be taken from current contain of the table in
> database.
> In other words, I want to export a table in SQL-like dump.
>
> Thanks for help, Jan Januska

--

Jerry Gitomer         	ICT Group
jgitomer_at_ictgroup.com	Langhorne PA
jgitomer_at_yahoo.com 	Opinions are mine not those of ICT Group
Received on Tue May 19 1998 - 11:55:26 CDT

Original text of this message

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