select * from emp where deptno not in ('10','20',null) 这是查询不到结果的 in ('10','20',null) 是可以查询到结果的 如果含有null 不能用 not in