select *from 表名 where (shareUser is not null) or shareUser<>''
不为空有2中 不是空值 is not null 不是空格 <>""
SELECT * FROM `table` WHERE `str` IS NOT NULL AND `str` <> '';
不等于NULL AND 不等于 ‘’;
SELECT name FROM users WHERE name is not null
select 字段名 from 表名 where 字段名 is not null and 字段名 !=“";