这个PL / SQL块有什么问题

时间:2011-07-17 10:07:56

标签: plsql

declare
a number:=2;
begin
if(a<2) then 
dbms_output.put_line('Hi A Less Than 2');
else if(a<100) then 
dbms_output.put_line('Hi A Less Than 100');
else
dbms_output.put_line('Hi A Greater Than 100');
end if;
end;
/

请告诉我这个PL / SQL块有什么问题?

1 个答案:

答案 0 :(得分:0)

应该是elsif而不是else if。检查Oracle® Database PL/SQL Language Reference以获取pl / sql

中测试条件的正确语法
相关问题