declare cursor city_cur is
select t.new_customer_id,t.old_customer_id from
citsonline.crm_customer_tmp6 t
where t.new_customer_id!=t.old_customer_id
order by new_customer_id;
begin
for my_cur in city_cur loop

update platform.crm_service_customer_bak s
set s.customer_id=my_cur.new_customer_id
where s.customer_id=my_cur.old_customer_id;

/** 此处也可以单条/分批次提交,避免锁表情况 **/
if mod(city_cur%rowcount,1000)=0 then
dbms_output.put_line('----');
commit;
end if;
end loop;
commit;
end;

最新文章

  1. Qt中2D绘图问题总结(二)----------坐标系统
  2. iOS 简单提示view
  3. IOS第12天(1,UIViewController控制器的创建的 三种方式,和第一个view创建)
  4. 快速求n的质因子(数论)
  5. UVAlive3486_Cells
  6. jedis操作redis全指南
  7. RobotFramework 安装配置(二)
  8. DebugDiag收集Dump的使用说明
  9. 性能测试之Windows常见性能计数器
  10. 动态执行C#代码
  11. DES加密,Tk写的简单的GUI
  12. [C++]指针浅析
  13. 我从现象中学到的CSS
  14. LR-Controller 如何自定义显示虚拟用户状态
  15. 【第十六章】 springboot + OKhttp + String.format
  16. linux 线程的同步 一 (互斥量和信号量)
  17. series dataframe 的 idxmax()
  18. JS版的Server.UrlEncode
  19. 开源的PaaS方案:在OpenStack上部署CloudFoundry (一)简介
  20. MongoDB的win安装教程

热门文章

  1. Rest 参数(...)
  2. 【ssm】spring功能讲解
  3. MySQL6
  4. zend studio 12.5.1 window 安装并设置笔记
  5. Thunderbird and Gmail
  6. noip模拟赛 梦想
  7. Choose and divide
  8. 浅谈SQL Server 对于内存的管理--宋沄剑 英文名:CareySo
  9. Workspace in use or cannot be created, choose a different one.--错误解决的方法
  10. 用XMLRPC开服务进行server/client通信