NVL2
来源:互联网 发布:石大在线网络教育 编辑:程序博客网 时间:2024/05/01 17:31
Purpose
NVL2 lets you determine the value returned by a query based on whether a specified expression is null or not null.
If expr1 is not null, then NVL2 returns expr2. If expr1 is null, then NVL2 returns expr3.
如果expr1非空,则返回 expr2,如果expr1是空值,则返回expr3
The argument expr1 can have any data type. The arguments expr2 and expr3 can have any data types except LONG.
expr1 可以是任意数据类型, expr2 and expr3 可以是任意数据类型,但不能是LONG类型,且数据类型要一致,或者隐式转换为一致,或者显示转换为一致。
If the data types of expr2 and expr3 are different, then Oracle Database implicitly converts one to the other.
如果expr2 and expr3 数据类型不同,则隐式转为相同
If they cannot be converted implicitly, then the database returns an error.
如果不能隐式转换,则报错。
If expr2 is character or numeric data, then the implicit conversion is implemented as follows:
- If expr2 is character data, then Oracle Database converts expr3 to the data type of expr2 before returning a value unless expr3 is a null constant.
- In that case, a data type conversion is not necessary, and the database returns VARCHAR2 in the character set of expr2.
- 如果expr2 是字符类型,则将expr3 转换为expr2相同的数据类型。
- If expr2 is numeric data, then Oracle Database determines which argument has the highest numeric precedence, implicitly converts the other argument to that data type, and returns that data type.
- NVL2
- NVL2
- NVL2
- NVL2函数
- NVL,NVL2
- coalesce nvl nvl2 nullif
- NVL & NVL2 & NULLIF
- NVL,NVL2,NULLIF,COALESCE
- decode和NVL2区别
- nvl,nvl2,nullif
- SQL nvl2 函数
- oracle nvl2函数
- NVL和NVL2
- NVL() NVL2() COALESC() 小结
- oracle nvl nvl2 nullif
- NVL,NVL2,NULLIF,COALESCE
- nvl() 和nvl2()
- coalesce、nvl、nvl2比较
- 冒泡排序法(Java)
- 常用宏定义 #define
- UVA - 10305 Ordering Tasks
- 动态内存分配
- 别踩白块儿之禅模式 windows程序实现
- NVL2
- 用华为C8813调试LogCat不显示日志问题解决方法
- iOS中注册功能的体验探究
- NSMutableDictionary 用set方法初始化的字典 里边的键值不可修改
- 国内技术创新型公司的一个问题
- eclipse部署web项目至本地的tomcat但在webapps中找不到
- HDU3564Another LIS(线段树,LIS升级)
- [Python] easy_install 和 pip 在windows 下的安装
- PHP里的DIRECTORY_SEPARATOR 与 PATH_SEPARATOR