码迷,mamicode.com
首页 > 数据库 > 详细

Oracle Commit 方式 COMMIT WRITE batch NOWAIT;

时间:2016-02-18 17:49:17      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:

1111

 

CREATE OR REPLACE PROCEDURE update_hav_tpnd IS
  CURSOR hav_tpnd_cur IS
    SELECT d.hav_tpnd, d.item, d.sheetid FROM it_item@jvids_dev_jvrms d;
BEGIN
  FOR rec_hav_tpnd IN hav_tpnd_cur LOOP
    UPDATE it_item
       SET hav_tpnd = rec_hav_tpnd.hav_tpnd
     WHERE item = rec_hav_tpnd.item
       AND sheetid = rec_hav_tpnd.sheetid;
    COMMIT WRITE batch NOWAIT;
  END LOOP;
END update_hav_tpnd;

Oracle Commit 方式 COMMIT WRITE batch NOWAIT;

标签:

原文地址:http://www.cnblogs.com/eastsea/p/5198773.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!