count(*)、count(1)、count(字段) count(*)、count(1) 对行的数目进行计算,包含NULL;而count(字段)则会统计该字段出现的次数,从而忽略NULL in 和 not in 遇到null 的情况 数据源有 null , in 中包含null ,是不会匹配到null值的那一行不论数据源有没有null,当 not in 中包含null,最后什么结果都匹配不到数据源有 null,当 not in 中不包含null,是不会匹配到null值的那一行