When creating an automatically executable stored procedure in the oracle database, the following error occurs when compiling:
PLS-00103: The symbol "end-of-file" appears when one of the following is required:
(
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
)
stored procedure code:
create or replace procedure proc_update_hysj
as
begin
insert into hysj
slightly...
end;
The reason is that the semicolon is missing. In the execution code of begin, use the title; to indicate the end!
create or replace procedure proc_update_hysj
as
begin
insert into hysj
…
;
end;
Execute the stored procedure:
BEGIN
proc_update_hysj();
END;