create or replace procedure test(Name in varchar2) is
begin
 dbms_output.put_line('dsfdf'); 
 if Name= '111' then
  dbms_output.put_line('111'); 
 else if  Name= '222' then
 dbms_output.put_line('222'); 
 end if;
end test;
出错如下
Compilation errors for PROCEDURE IFSAPP.TESTError: PLS-00103: 出现符号test;在需要下列时:if
        if
Line: 9
Text: end test;去掉else if  Name= '222' then,就OK