oracle一些函数

NVL( string1, replace_with):判断string1是否为空,如果是空就用replace_with代替。

NVL2(E1, E2, E3)的功能为:如果E1为NULL,则函数返回E3,若E1不为null,则返回E2。

decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值)

decode(字段或字段的运算,值1,值2,值3)字段==值1?值2:值3

原文地址:https://www.cnblogs.com/brolanda/p/4543821.html