MySQL Select查询语句字段为空或不为空的写法

字段不为空的SQL语句

Select * From table_name Where id <> ”

Select * From table_name Where id != ”

字段为空的SQL语句

Select * From table_name Where id=”

Select * From table_name Where ISNULL(id)