mysql 查询某个字段为空或不为空的数据

  • 某个字段为空的数据:select * from evt_t_pub_audit_msg_report where userName is null or trim(userName)='';
    mysql 查询某个字段为空或不为空的数据

  • 某个字段不为空的数据:select * from evt_t_pub_audit_msg_report where trim(userName)!='';
    mysql 查询某个字段为空或不为空的数据

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案