在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;