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.
    

最新文章

  1. TI的DSP、ST的ARM、Intel的X86浮点性能对比
  2. WEBService动态调用代码
  3. Nginx模块开发入门
  4. FZU 2086 餐厅点餐(枚举)
  5. js获取本机的网络IP地址
  6. Python3安装Requests
  7. hadoop中集群节点ID不一致( java.io.IOException: Incompatible clusterIDs )
  8. 从0开始的Python学习014面向对象编程
  9. 利用C#实现AOP常见的几种方法详解
  10. MyEclipse常用设置和快捷键
  11. 《Python》网络编程之验证客户端连接的合法性、socketserver模块
  12. PTA (Advanced Level) 1006 Sign In and Sign Out
  13. 猎豹浏览器(chrome内核)屏蔽视频广告
  14. 2.4 C++成员选择符
  15. nvm npm node.js的关系
  16. java之进程和线程
  17. (经典) K&R的名著<<C程序设计语言>>二分查找
  18. 旋转图像 · Rotate Image
  19. Cloudera Manager安装之利用parcels方式安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(CentOS6.5)(四)
  20. 数据预处理(Python scikit-learn)

热门文章

  1. 分页--pagination.js
  2. 【富文本、JS】将接口传来的全部纯URL替换为富文本插件能识别到的img标签
  3. Matplotlib 安装
  4. Linux ---- 查看当前TCP连接数
  5. P1067 试密码
  6. kubernetes集群全栈监控报警方案kube-prometheus
  7. 安装hue时,make apps 编译报错
  8. eclipse生成mybatis的逆向工程-mybatis代码自动生成
  9. 【pwnable.tw】 alive_note
  10. Spring组件扫描--源码跟踪