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: copy data from one table to another

Re: copy data from one table to another

From: Devinder Pal Singh <Devinder_Pal.Singh_at_pharma.novartis.com>
Date: Thu, 13 Aug 1998 14:18:25 -0400
Message-ID: <35D32DF1.4227@pharma.novartis.com>


Hi dear ,
You can try my version also.
A table test with two fields as
Test(id number(3),desc long) and you want to copy it to another table test1, here is the script,
declare
  cursor c1 is select * from test;
begin
  for c1rec in c1 loop
   insert into test1 values( c1rec.id,c1rec.desc);   exit when c1%notfound;
  end loop;
end;

This will solve your problem.
Regards
Devinder Received on Thu Aug 13 1998 - 13:18:25 CDT

Original text of this message

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