Oracle中NVL、NVL2、DECODE函数的用法
2017-04-14 10:25
501 查看
DECODE函数的用法:
DECODE(value,if1,then1,if2,then2,if3,then3,......,else),表示如果value的值等于if1时,DECODE函数的结果返回then1,......,如果不等于任何一个if值时,则返回else值。
NVL函数的用法:
NVL(expr1,expr2),表示如果expr1的值为NULL时,则返回expr2的值,否则返回expr1的值。
NVL2函数的用法:
NVL2(expr1,expr2,expr3),检查表达式expr1,表示如果expr1不为NULL时,返回值为expr2,否则返回值为expr3。
DECODE(value,if1,then1,if2,then2,if3,then3,......,else),表示如果value的值等于if1时,DECODE函数的结果返回then1,......,如果不等于任何一个if值时,则返回else值。
NVL函数的用法:
NVL(expr1,expr2),表示如果expr1的值为NULL时,则返回expr2的值,否则返回expr1的值。
NVL2函数的用法:
NVL2(expr1,expr2,expr3),检查表达式expr1,表示如果expr1不为NULL时,返回值为expr2,否则返回值为expr3。
相关文章推荐
- Oracle中NVL、NVL2、DECODE函数的用法
- oracle中的NVL和NVL2及NULLIF再及decode函数用法总结
- Oracle 中 nvl、nvl2、nullif、coalesce、decode 函数的用法详解
- Oracle 中 nvl、nvl2、nullif、coalesce、decode 函数的用法详解
- oracle中的nvl 、nvl2、decode、case when 函数的用法
- 【oracle】DECODE ,NVL,NVL2的用法
- Mysql中ifNull()/if()/case when用法和Oracle中nvl()/nvl2()/decode()的用法
- Oracle中处理空值的函数nvl-nvl2-lnnvl-nullif的用法
- Oracle 中 nvl、nvl2、nullif、coalesce、decode 函数的用法详解
- Oracle的nvl和nvl2的用法
- Mysql中ifNull()/if()/case when用法和Oracle中nvl()/nvl2()/decode()的用法及其比较
- oracle NVL、NVL2,、NULLIF、COALESCE函数的用法
- Oracle中集中对于NULL操作的函数NVL,NVL2,以及COALESCE的用法
- Oracle --nvl(),CASE WHEN 用法介绍
- oracle中的NVL,NVL2,NULLIF,COALESCE几个通用函数
- Oracle DECODE函数的用法
- Oracle DECODE函数的用法
- Oracle的nvl(a,b)函数的用法
- Oracle decode函数用法与表的行列转换
- oracle 函数大全 之 nvl() nvl2()