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: Duplicate all rows in a table

Re: Duplicate all rows in a table

From: Thorsten Kubis <TKubis_at_t-online.de>
Date: Sun, 19 Mar 2000 15:34:59 +0100
Message-ID: <38D4E593.3DC30056@t-online.de>


Sorry!

Things are so easy...

create temp_table as select * from orig_table; update temp_table set PK=concat('DUP_',PK); insert into orig_table select * from temp_table; drop table temp_table;

Again, sorry for such an easy question!

Thorsten

Thorsten Kubis schrieb:
>
> Hello all!
>
> I want to duplicate all rows in a table.
> The primary key should start with
> a suffix like "dup_".
> Is there an easier way than export, find and
> replace,import?
>
> Any ideas?
>
> Thorsten
Received on Sun Mar 19 2000 - 08:34:59 CST

Original text of this message

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