首页 > 其他 > 详细

7 where 约束条件

时间:2020-02-15 21:27:21      阅读:61      评论:0      收藏:0      [点我收藏+]

#where

select id,name,age from employee where id>7;

select id,name,post,salary from employee where  post=teacher and salary>8000;

select name,salary from employee where salary >=20000 and salary <= 30000;

select name, salary from employee where salary between 20000 and 30000;

select name, salary from employee where salary<20000 or salary>30000;

select name, salary from employee where salary not between 20000 and 30000;

select * from employee where age in(73,81,88);

select * from employee where post_comment is Null;

select * from employee where post_comment is not Null;

select * from employee where name like jin%;   #模糊匹配

select * from employee where name like jin___;

 

7 where 约束条件

原文:https://www.cnblogs.com/zhujing666/p/12313558.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!