Oracle 存儲過程刪除大表記錄:
create or replace procedure whxd as begin loop delete from sj where t<to_date('2011-07-12 10:40:49','yyyy-mm-dd hh24:mi:ss') and rownum<1000; -
exit when SQL%ROWCOUNT=0; commit; end loop; exception when others then rollback; return; end;
服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
0371-601359007*24小時客服服務(wù)熱線