1.若要查询某个字段为null的数据,应该使用 select * from table where table.attr is null ; 不能用 =null。 null是一种状态,不是一个值,所以不能用等号。