我正在编写一个简单的老年人检查程序。但这个错误让我感到困惑。代码如下
declare
gen char(1);
age number(3);
begin
gen:='&gen';
age:=&age;
if age>65 and gen='m'
then
dbms_output.put_line("senior citizen");
elsif age>60 and gen='f'
then
dbms_output.put_line("senior citizen");
else
dbms_output.put_line(" not a senior citizen");
endif;
end;
error at line 20:
ora 06550:line 20, column 4
pls-00103:encountered symbol ';' when expecting one of the following if
我真的不知道怎么了