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