oracle if else if语句格式

如题所述

第1个回答  2021-01-14
select case when 10>5 then 10
when 10>6 then 15

when 10>7 then 16
when 10>8 then 17
else null end from dual;

相当于
If(10>5){
print(15)
}...
else if(10>8){
print(16)
}else {
print(17)
}

相关了解……

你可能感兴趣的内容

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