Et script til at oprette flere procedurer skal se sådan ud:
create or replace procedure proc1 (param1 varchar2)
is
begin
null;
end;
/
create or replace procedure proc2 (param1 varchar2)
is
begin
null;
end;
/
create or replace procedure proc3
is
begin
null;
end;
/
Hvordan ser din ud?
Bedste praksis er altid at lægge relaterede lagrede procedurer i pakker alligevel:
create or replace package package1 is
procedure proc1 (param1 varchar2)
is
begin
null;
end;
procedure proc2 (param1 varchar2)
is
begin
null;
end;
procedure proc3
is
begin
null;
end;
end package1;
/