逻辑运算符

逻辑运算符

--工资超过5000 且last_name 以s 结尾的员工
select * from employees where salary>=5000 and last_name like '%s';

--查询部门是10,20,以及没有部门的员工
select * from employees where department in (10,20) or department_id is null;

 

相关文章:

  • 2021-11-21
猜你喜欢
  • 2021-09-05
相关资源
相似解决方案