ORACLE if分支语句编译时报错PLS-00103

Posted teayear

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORACLE if分支语句编译时报错PLS-00103相关的知识,希望对你有一定的参考价值。

在编写oracle代码时的错误报错,是if 分支语句

查看if 代码
如下:

declare
   age number:= #
   begin
     if age<18 then 
       dbms_output.put_line('未成年人');
     elsif age>=18 and age<60 then 
       dbms_output.put_line('年轻人');
     else if age>=60 and age<80 then
       dbms_output.put_line('中年人');
     elsif age>=80 then
       dbms_output.put_line('老人');
     end if;       
   end;

经仔细查看,发现是elsif写成了 else if这种。

以上是关于ORACLE if分支语句编译时报错PLS-00103的主要内容,如果未能解决你的问题,请参考以下文章

oracle执行存储过程时报:ORA-12170:TNS:连接超时

oracle删除某个用户时报错:无法删除已连接用户

linux Red Hat 64位安装oracle时报错

oracle数据库impdp命令导入数据库时报错

问题:程序编译通过,但是执行时报错:coredump

Spring Boot 利用插件构造QueryDSL语句时报错:You need to run build with JDK or have tools.jar on the classpath.If