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