MySQL中查询字段为空或者为null方法

判断为null

select * from table where  column is null;
不为null:
select * from table where  column is not null;

判断为空或空格

select * from table where column ='';

:不管是空还是其中有空格都可以显示出来。
补充:

  1. 如果是excel导入mysql中创建临时表需要使用xls格式
  2. 如果excel有字段为null,导入的时候转成字符 ‘null’