commit;会释放会话拥有的任何锁
把commit;放在end loop语句后
loop
fetch rec_position into xx;
exit when rec_position%notfound;
update t_text1 set age=yy where current of rec_position;
yy := yy + 1;
end loop;
commit;
把commit;放在end loop语句后
loop
fetch rec_position into xx;
exit when rec_position%notfound;
update t_text1 set age=yy where current of rec_position;
yy := yy + 1;
end loop;
commit;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货