oracle 数据库存储过程编译报错PLS-00103出现符号 end-of-file在需要下列之一时
生活随笔
收集整理的這篇文章主要介紹了
oracle 数据库存储过程编译报错PLS-00103出现符号 end-of-file在需要下列之一时
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在oracle數據庫創建可自動執行的存儲過程中,編譯時,出現如下錯誤:
PLS-00103: 出現符號 "end-of-file"在需要下列之一時:
(
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
)
存儲過程代碼:
create or replace procedure proc_update_hysj
as
begin
insert into hysj
略…
end;
原因,少了分號。在begin執行代碼中,用封號; 表示結束!
create or replace procedure proc_update_hysj
as
begin
insert into hysj
略…
;
end;
執行存儲過程:
BEGIN
proc_update_hysj();
END;
總結
以上是生活随笔為你收集整理的oracle 数据库存储过程编译报错PLS-00103出现符号 end-of-file在需要下列之一时的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: A ConvNet for the 20
- 下一篇: 用一条SQL语句查询出每门课程的成绩都大