create or replace procedure Test1(score in number)
as
begin
if(score>90) then
begin
dbms_output.put_line('the result is A');
end;
elsif(score>80) then
begin
dbms_output.put_line('the result is B');
end ;
end if;
end;
注明:每一个end if对应一个if语句,每个if语句中要有begin和end关键字。