oracle(4)----空值说明
2024-10-08 16:14:01
1. 含义:空值(null)表示未知或者暂时不存在的数据,任何类型(没有约束的条件下)都可以取值null;2. 插入null值: insert into stu (id,name) values(3,null);3. 更新null值: uPdate stu set name=null where id=2;4. 用null作为过滤条件 select * from stu where name is null; select * from stu where id is not null;5. 空值的运算: (1)连接字符串时等于什么都没干 select concat('see',null) from dual; ----see (2) 与数字计算,结果为null select (id+null) from stu ; ----null 相关函数:6. nvl(n1,n2): 当n1为null时,返回n2。 当n1不为null时,返回n1。 select nvl(4,null),nvl(null,10) from dual;---4,107. nvl2(n1,n2,n3): 当n1为null时,返回n3. 当n1不为null时,返回n2.
最新文章
- TI的DSP、ST的ARM、Intel的X86浮点性能对比
- WEBService动态调用代码
- Nginx模块开发入门
- FZU 2086 餐厅点餐(枚举)
- js获取本机的网络IP地址
- Python3安装Requests
- hadoop中集群节点ID不一致( java.io.IOException: Incompatible clusterIDs )
- 从0开始的Python学习014面向对象编程
- 利用C#实现AOP常见的几种方法详解
- MyEclipse常用设置和快捷键
- 《Python》网络编程之验证客户端连接的合法性、socketserver模块
- PTA (Advanced Level) 1006 Sign In and Sign Out
- 猎豹浏览器(chrome内核)屏蔽视频广告
- 2.4 C++成员选择符
- nvm npm node.js的关系
- java之进程和线程
- (经典) K&;R的名著<;<;C程序设计语言>;>;二分查找
- 旋转图像 &#183; Rotate Image
- Cloudera Manager安装之利用parcels方式安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(CentOS6.5)(四)
- 数据预处理(Python scikit-learn)