oracle 多行update出现卡死的问题-1.1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/caishu1995/article/details/83930512

    今天有个同事问了我一个神奇的问题,虽然是他出问题然后他又自己解决了。但我还是学了一招,特来记录,感谢他教我了这一招@王生生

问题:

    他执行一个sql文件,使用  SQL> @F:\a.sql。然后卡死了,sql语句好像没执行。

    他的sql文件里面的内容如下:

update A set f1='01' where id='1';
update A set f1='02' where id='2';
update A set f1='03' where id='3';
-- ....
update A set f1='m' where id='n';
comimit;

解决方案:

    最后他参考了https://blog.csdn.net/bhsky/article/details/3173583 发现他好像没有加begin和end;他加完以后就顺利解决了。 

猜你喜欢

转载自blog.csdn.net/caishu1995/article/details/83930512