table_a有3条数据 column1值分别为1,0,null

那么

select * from table_a where column1!='1' 只会查到clumn1为0的数据,null的数据查不出,因为null数据数据库视为特殊数据,

如果同时查除null的数据则需如下写法:

select * from table_a where column1!='1' or column1 is null;

最新文章

  1. 简单说说call 与apply
  2. hadoop(2014/0619)
  3. Atitit USRqc62204 证书管理器标准化规范
  4. Jmeter 提取http请求返回值里json数据参数化方法
  5. Grafana 安装
  6. shenyi 语录
  7. [BS-17] iOS开发-Alpha,Hidden和Opaque区别
  8. 为什么X86汇编中的mov指令不支持内存到内存的寻址?
  9. 查看事务锁:innodb_trx+innodb_locks+innodb_lock_waits
  10. Objective-C /iphone开发基础:分类(category,又称类别)
  11. Visual Studio 2015 Owin+MVC+WebAPI+ODataV4+EntityFrawork+Identity+Oauth2.0+AngularJS 1.x 学习笔记之"坑"
  12. 数据库中的索引Index
  13. Discuz经典函数注释之authcode
  14. 7_linux下PHP、Apache、Mysql服务的安装
  15. Hibernate框架学习之注解配置关系映射
  16. Redux,基础
  17. Timer与TimerTask
  18. SAP 销售条件表增强栏位
  19. js函数和变量的声明与执行顺序
  20. Linux 安装python3.7.0

热门文章

  1. 初始化安装后 Nacos 动态路由配置不生效
  2. net core 添加cors,解决跨域问题
  3. 全国计算机二级python备考
  4. rust vec排序
  5. LCD1602液晶屏
  6. tp-link路由器后台_硬解
  7. RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
  8. CentOS 7.6 部署zabbix 6.0 支持Kubernetes
  9. 【剑指Offer】【树】序列化二叉树
  10. python 搭建自启动FTP服务器,编译后exe后个人随时可用,非常方便