-- 查询手机号不为null的用户数据
SELECT * from user where phone is not null;
-- 查询手机号为null的用户数据
SELECT * from user where phone is null;
mysql 查询值为null的数据: is null 的使用
猜你喜欢
转载自blog.csdn.net/torpidcat/article/details/80775817
今日推荐
周排行