SQLite查询空值
1、当插入数据位空时(如:Second= “”),数据中显示内容为(null)。如图所示。

查询显示为空的列表:
1 select * from Test where Second is null
显示结果:

查询显示不为空的列表:
1 select * from Test where Second not null
2、当插入数据的字段不存在时,数据库中显示为空。如图所示。

查询显示为空的列表:
1 select * from Test where Second is ''
显示结果

查询显示不为空的列表:
1 select * from Test where Second <> ''
posted on 2012-08-10 14:15
王海光 阅读(2506)
评论(0) 编辑 收藏 引用 所属分类:
SQLite