Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Update Query Question
Look into PL/SQL. Basically, you would open a cursor and perform your SQL
select. Then you fetch values from that cursor into some variables and then
perform your insert. You can buffer your commits so that you don't fill up
your rollback segment.
I'm using this logic in moving data from legacy system into a new table and each PL Procedure is about 20 lines long. Performance-wise I can update 500000 records in about 4 minutes. ( HP 10.x running 8.0.5 )
Respond if you need some example code. Received on Sun Aug 22 1999 - 11:24:20 CDT
![]() |
![]() |