当前位置:Gxlcms > 数据库问题 > oracle存储过程中的if...elseif...else用法

oracle存储过程中的if...elseif...else用法

时间:2021-07-01 10:21:17 帮助过:3人阅读

if ... then 
...   
elsif ... then 
...   

else 
...   
end if;   
    

or     
if ... then     
  ...   
else 
...   
end if;   
    
or     
if ... then 
...   
end if;

 

注:if后的条件不加括号

 

例子如下:
           if   p_fh <> ‘‘   then
               p_strsql := p_strsql || ‘ and b.fh = p_fh‘;
           end if;
                   

oracle存储过程中的if...elseif...else用法

标签:

人气教程排行