oracle 数据库存储过程编译报错PLS-00103出现符号 end-of-file在需要下列之一时
在oracle數(shù)據(jù)庫(kù)創(chuàng)建可自動(dòng)執(zhí)行的存儲(chǔ)過(guò)程中,編譯時(shí),出現(xiàn)如下錯(cuò)誤:
PLS-00103: 出現(xiàn)符號(hào) "end-of-file"在需要下列之一時(shí):
(
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<< continue close current delete fetch lock
insert open rollback savepoint set sql execute commit forall
merge pipe purge
)
存儲(chǔ)過(guò)程代碼:
create or replace procedure proc_update_hysj
as
begin
insert into hysj
略…
end;
原因,少了分號(hào)。在begin執(zhí)行代碼中,用封號(hào); 表示結(jié)束!
create or replace procedure proc_update_hysj
as
begin
insert into hysj
略…
;
end;
執(zhí)行存儲(chǔ)過(guò)程:
BEGIN
proc_update_hysj();
END;
總結(jié)
以上是生活随笔為你收集整理的oracle 数据库存储过程编译报错PLS-00103出现符号 end-of-file在需要下列之一时的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: A ConvNet for the 20
- 下一篇: linux cmake编译源码,linu