`
trent_luo
  • 浏览: 43659 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

批量数据订正

阅读更多

begin
   for x in ( select order_id, rownum r  from billing_order where status != 'closed' and pc2_type = '1' )
   loop
        update billing_order  set pc2_type = '4',gmt_modified = sysdate
         where order_id = x.order_id;
        if ( mod(x.r,1000) = 0 ) then
           commit;
        end if;
   end loop;
   commit;
end;
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics