Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> copy one table to an other

copy one table to an other

From: Vince <vincent_at_>
Date: Tue, 10 May 2005 12:21:51 +0200
Message-ID: <1f21819un37l6uqtcu6871q483agoi1v7c@4ax.com>


hi there!
I have to copy data from one table to another..like this:

insert into mytable2 select * from mytable1;

but number of columns of mytable2 is greater than those of mytable1, so I get the : ORA-00947: not enough values

is there any way to proceed without having to enumerate all the columns ?
the column in plus is a ID column with an autoincrement (trigger) which is not in mytable1.

thanks a lot :)
++
Vince Received on Tue May 10 2005 - 05:21:51 CDT

Original text of this message

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