› Fóruns › Banco de dados Oracle › Delete no Oracle › Delete no Oracle
19 de junho de 2009 às 8:46 pm
#87372
Participante
Anderson,
Para fazer o commit a cada 1000 registros vc teria que fazer algo assim:
declare
cursor crTabela
select t.rowid rid
from tabela t
where
vCommit number := 0;
begin
for c in crTabela loop
delete from tabela where rowid = c.rid;
vCommit := vCommi + 1;
if vCommit >= 1000 then
commit;
vCommit := 0;
end if;
end loop;
commit;
end;
/
[/code]