SQL查找非空元素(!=NULL)

来源:互联网 发布:淘宝上卖水果怎么收费 编辑:程序博客网 时间:2024/06/05 10:48


http://blog.csdn.net/u010673842/article/details/53892986


例如:

[csharp] view plain copy
  1. select name from clase where address != null  

这样的话查询语句不会报错,但是永远不会有可用的选项

SQL中要想实现这个功能有另外一个表达的方式

[csharp] view plain copy
  1. select name from clase where address IS NOT NULL  



原创粉丝点击