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 -> Re: PL/SQL - Need copy table script

Re: PL/SQL - Need copy table script

From: Ian Cary <cary_at_gatwick.geco-prakla.slb.com>
Date: 1997/10/02
Message-ID: <34338F4A.39D@gatwick.geco-prakla.slb.com>#1/1

In SQL you could have

insert into table1
select * from table 2;

or in PL/SQL

declare

cursor t1 as
select * from table1;

begin
for trec in t1 loop

    insert into table2 values(trec.field1,trec.field2 ........); end loop;
end;

Hope this helps (in time)

Ian Received on Thu Oct 02 1997 - 00:00:00 CDT

Original text of this message

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