mysql删除字段为null的记录的语句为: delete from tablename where name is null; 不能使用where name=null的方式 因为该计算返回的结果为null 即删除语句不会运行