解决ORA-00923 提示未找到要求的Form关键字问题

#解决ORA-00923 提示未找到要求的Form关键字问题
错误代码:没有加,号

select e.sal
       case   
         when e.sal>3000 then '高收入' 
             when e.sal>1500 then '中等收入' 
               else '低收入' 
                 end 
from emp e;

改正:在e.sal后面加上,即可

select e.sal,
       case   
         when e.sal>3000 then '高收入' 
             when e.sal>1500 then '中等收入' 
               else '低收入' 
                 end 
from emp e;

其他可能原因 引号、空格是否为英文

你可能感兴趣的:(Oracle)