declare i int; begini:=0; while i < 1000 loopselect * from table where rownum<1000; i:=i+1; commit; end loop; end;