存储过程为什么跑了许久
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 tes... 展开
其他答案
你直接用update biao_a a,biao_b b set b.num=a.num where b.id=a.id;不就行了。要用这个存储过程的话,表的数据量大的话,就会跑很久了。
2010-12-17 17:09
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




