Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL 'DUMP' From Oracle - How?
Hi Mark,
Yeah, you have to write a fiddly query like so:
SELECT * FROM <table_name>;
SPOOL OFF
SET COLSEP ' '
SET FEEDBACK ON
SET PAGES 24
SET HEAD ON
The output will be a nice comma delimited file all ready to load
into any RDBMS with a utility smart enough to handle a delimited file.
Regards
Jerry
Mark Tortolano wrote:
>
> Hi there,
>
> I'm trying to dump the contents of a table, in order to create a
> series of SQL INSERT statements. I know the functionality of Export,
> but I just want to create INSERT statements, not an Oracle-specific
> binary.
>
> How do I do this? Is the only way to create a (fiddly) SQL*Plus
> report, using headings, separators, etc, or is there a better way?
>
> Thanks,
>
> Mark Tortolano
--
Jerry Gitomer ICT Group jgitomer_at_ictgroup.com Langhorne PA jgitomer_at_yahoo.com Opinions are mine not those of ICT GroupReceived on Wed May 27 1998 - 11:51:05 CDT