房天下 > 房天下问答 > 业主生活 > 其他
  • 存储过程为什么跑了许久

    create or replace procedure test iscursor a is select * from biao_a;begin for b in a loop update biao_b t set t.num=b.num where t.id=b.id; commit; end loop;end test;

    提问者:stravas

    发布于2010-12-17

共1个回答
  • 恋一小屋 丨Lv 3
    你直接用update biao_a a,biao_b b set b.num=a.num where b.id=a.id;不就行了。要用这个存储过程的话,表的数据量大的话,就会跑很久了。
    +1 2010-12-17 举报
热门人气推荐
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。