mysql text字段判断是否为空
mysql text字段为空
select * from `tableName` where `textField` is null or `textField` = '';
mysql text字段不为空
select * from `tableName` where `textField` is not null AND `textField` != '';
作者:zqifa
本文介绍了如何在MySQL中判断TEXT字段是否为空或非空。提供了两种SQL查询语句,一种用于查找TEXT字段为空的情况,另一种则用于筛选出TEXT字段非空的数据。
mysql text字段判断是否为空
mysql text字段为空
select * from `tableName` where `textField` is null or `textField` = '';
mysql text字段不为空
select * from `tableName` where `textField` is not null AND `textField` != '';
作者:zqifa
4354
528
2072

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