在oracle sql语句里有没有if...else...的用法,请各位大侠给个例子看看,灰常感谢!!

如题所述

第1个回答  2012-01-20
CASE when ......... then ..............else ...................... end

有这样的结构
第2个回答  2017-07-04
sql 语句我只用过 when ... then ... else ... ,你说的if else 倒是在存储过程中常用 if .... then .... else....
第3个回答  2012-01-24
case when 1=1 then 1 else 2 end
case when 1=1 then 1 when 1<> 1 then 2 else 0 end
第4个回答  2012-01-25
在oracle中,没有完全的if...else的用法,在游标中,友if..end if的用法
if emp>500 then insert into。。values() end if
if emp>1000 then intsert into...
第5个回答  2012-01-20
没有!!!!

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网