select * from tableName where field is null;
select * from tableName where field is not null;
本文介绍如何使用 SQL 语句查询数据库表中指定字段为空及非空的所有记录。通过两个简单的 SQL 语句示例,展示了如何判断字段是否为空。
select * from tableName where field is null;
select * from tableName where field is not null;
1168

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