java学习条件查询之not
1、查询出薪水不腻戴怯猡包含1600和薪水不包含3000的员工(第一种写法)select * from emp where sal <> 1600 and sal <> 3000;
2、查询出薪水不包含1600和薪水不包含3000的员工(第二种写法select * from emp where not (sal = 1600 or sal = 3000);
3、查询出薪水不包含1600和薪水不包含3000的员工(第三种写法)select * from emp where sal not in (1600, 3000);
4、查询出津贴不为null的所有员工select * from emp where comm is not null;
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:79
阅读量:66
阅读量:54
阅读量:21
阅读量:76