del_cursor 批量删除游标
- declare
- cursor [del_cursor] is select a.*, a.rowid row_id from [table_name] a order by a.rowid;
- begin
- for v_cusor in [del_cursor] loop
- if v_cusor.[time_stamp] < to_date('2014-01-01','yyyy-mm-dd') then
- delete from [table_name] where rowid = v_cusor.row_id;
- end if;
- if mod([del_cursor]%rowcount,1000)=0 then
- commit;
- end if;
- end loop;
- commit;
- end;
-

更多精彩