无参数存储过程
create or replace procedure 存储过程的名称 is
begin
xxxx......此处为自己需要执行的sql语句
commit;
end 存储过程的名称;
含有入参的存储过程
create or replace procedure 存储过程的名称(入参名称 in 参数类型varchar2) is
begin
xxxx......此处为自己需要执行的sql语句
commit;
end 存储过程的名称;
执行存储过程
call ehr_pir_cityrepeat();
call ehr_pir_cityrepeat(?);