参考资料
1 <转载>oracle存储过程中的if...elseif...else用法
[url]http://blog.csdn.net/pingkongyouyuan/archive/2009/11/02/4759131.aspx[/url]
2 恶心的Oracle的if else if...
[url]http://blog.sina.com.cn/s/blog_407d47e60100d8ig.html[/url]
引用1 :lol:
[color=red]oracle if...elseif...else用法[/color]
1 <转载>oracle存储过程中的if...elseif...else用法
[url]http://blog.csdn.net/pingkongyouyuan/archive/2009/11/02/4759131.aspx[/url]
2 恶心的Oracle的if else if...
[url]http://blog.sina.com.cn/s/blog_407d47e60100d8ig.html[/url]
引用1 :lol:
[color=red]oracle if...elseif...else用法[/color]
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;