if .. then
else
end if;
内不能全部是注释或空

解决方案 »

  1.   

    if用的不对.
    plsq里的if是这么用的.
    if  then
    else
    endif
    或者
    if  then
    elsif then....endif
      

  2.   

    在pl/sql 里面好像是ELSE IF 不能连起来哦 这里看不到格式,所以不好看清楚,else是一层层嵌套的!再问一个问题,if 条件判断一个字段值是否为空是怎么写的?
      

  3.   

    是elsif 不是elseif.
    if 变量 is null then
      

  4.   

    是elsif 不是elseif.
    if 变量 is null then
      

  5.   

    是elsif,不是elseif
    if 变量 is null then
      

  6.   

    额,真是粗心!谢谢各位啦!一直写成了elseif