PLS-00103:当遇到以下情况之一时遇到符号“文件结束”: <an identifier =“”> <a double-quoted="" delimited-identifier="">

时间:2017-07-09 13:13:31

标签: sql

I am executing an update query

begin

 update active_cus 
 set Global_indicator = 'Y' where cust_id = '3311' ;

end;

I get the sql error

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:

; The symbol ";" was substituted for "end-of-file" to continue.

2 个答案:

答案 0 :(得分:0)

没有BEGIN ... END它是否有用; ?
如果您的脚本比您发布的样本长,则另一个END;可能会失踪。

答案 1 :(得分:0)

开始 更新集......其中......; 结束 提交;

这对我有用