1. 程式人生 > >oracle 多行update出現卡死的問題-1.1

oracle 多行update出現卡死的問題-1.1

    今天有個同事問了我一個神奇的問題,雖然是他出問題然後他又自己解決了。但我還是學了一招,特來記錄,感謝他教我了這一招@王生生

 

問題:

    他執行一個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;他加完以後就順利解決了。