首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

oracle中条件语句如何写

2011-12-24 
oracle中条件语句怎么写?在sqlserver中条件判断可以这么写:case().....when().......then()那在oracle中怎

oracle中条件语句怎么写?
在sql   server   中条件判断可以这么写:case().....when().......then()
那在oracle中怎么写的?
请教高手!

[解决办法]
select case when conditionA then resultA
when conditionB then resultB
...
else resultE
end
from table1;

热点排行
Bad Request.