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

oralce - decode

2012-07-18 
oralce -- decodeDECODE的用法:DECODE(value,if1,then1,if2,then2,if3,then3,...,else)表示如果value 等于

oralce -- decode
DECODE的用法:

DECODE(value,if1,then1,if2,then2,if3,then3,...,else)

表示如果value 等于if1时,DECODE函数的结果返回then1,...,如果不等于任何一个if值,则返回else。

-- oracle decode
select decode(sign(100-100),0,1,2) from dual;


返回   1

热点排行