Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> millions update
Hi,
I want to update millions of row.How to update in batch of 1000 rows
Is following pl/sql ok?
declare
i pls_integer;
begin
i := 1000;
while i = 1000 loop
UPDATE MESSAGES set id=44178 where desc_code='F086' and id=33167 and
rownum <1001;
i := sql%rowcount;
commit;
end;
thanks
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Oct 22 2004 - 00:08:38 CDT
![]() |
![]() |