标签:技术 HERE 表名 between employees 通配符 判断 dql style
select 查询列表 from 表名 where 筛选条件
SELECT * FROM employees WHERE salary>12000;
#案例2:查询部门编号不等于90号的员工名和部门编号
SELECT last_name, department_id FROM employees WHERE department_id<>90;
2、逻辑运算符
SELECT last_name, department_id FROM employees WHERE department_id<>90;
#案例2:查询部门编号不是在90到110之间,或者工资高于15000的员工信息
SELECT * FROM employees WHERE NOT(department_id>=90 AND department_id<=110) OR salary>15000;
标签:技术 HERE 表名 between employees 通配符 判断 dql style
原文地址:https://www.cnblogs.com/lfw421935678/p/13367728.html