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: Copy a record from 1-table to another

Re: Copy a record from 1-table to another

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 15 Dec 2005 01:01:15 +0100
Message-ID: <ccc1q159p512qo7refm5rnb54rlflgq4qe@4ax.com>


On 14 Dec 2005 14:43:47 -0800, "JoeT" <trubisz_at_yahoo.com> wrote:

>All I want to do is copy R (which is over 200 attributes) to S which is
>the same structure with 3-additional attributes, and populate the
>3-attributes when I do this.

And this requires only a little cutting and pasting...

just
spool x
desc r
spool off
edit x and transform it into s
OR
Use Toad, select all columns, right click and generate an INSERT statement.
Your solution is a *disaster* in terms of performance as you are fetching record for record. You would at least need to do a BULK COLLECT and BULK INSERT,
and coding that is WAY MORE WORK than
INSERT SELECT Geeez, don't people learn to WORK anymore nowadays? It sure looks like!!

--
Sybrand Bakker, Senior Oracle DBA
Received on Wed Dec 14 2005 - 18:01:15 CST

Original text of this message

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