I have a question regarding defining two functions back to back with PL/SQL. Below is the code I have:
create or replace procedure test2(mynum in integer, retnum out integer)
as
begin
DBMS_OUTPUT.put_line(mynum + 1);
retnum := 1000;
end;
create or replace procedure test3(mynum in integer, retnum out integer)
as
begin
DBMS_OUTPUT.put_line(mynum + 1);
retnum := 1000;
end;
When I run it I get the following error, but when I create the functions separately I do not. Am I missing some keyword to separate the two declarations?
Procedure TEST2 compiled
LINE/COL ERROR
10/1 PLS-00103: Encountered the symbol "CREATE" Errors: check compiler log
/on a line by itself after theEND;for each procedure. Best of luck./.