• 是is null, 不是用"="
-- 查询手机号不为null的用户数据
SELECT * from user where phone is not null;
 
-- 查询手机号为null的用户数据
SELECT * from user where phone is null;

相关文章:

  • 2021-09-14
  • 2021-08-19
  • 2021-08-31
  • 2021-12-20
  • 2022-12-23
  • 2021-11-23
  • 2021-12-13
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2021-12-03
  • 2021-08-31
  • 2022-12-23
  • 2021-08-31
  • 2021-12-10
相关资源
相似解决方案