为空
select * from a where name is null
不为空
select * from a where name is not null
本文介绍了两种基本的SQL查询方法:一种是查找表中为空的记录,使用IS NULL关键字;另一种是查找非空记录,使用IS NOT NULL关键字。这两种方法在数据处理和筛选中非常实用。
为空
select * from a where name is null
不为空
select * from a where name is not null

被折叠的 条评论
为什么被折叠?