步骤 2 : 与 步骤 3 : 或 步骤 4 : 非
使用between
select * from hr.employees where salary between 3000 and 5000 使用and 效果是一样的 select * from hr.employees where salary>= 3000 and salary<=5000 select * from hr.employees where first_name like '%a_' or first_name like '_a%' 要么满足正数第二个是a,要么满足倒数第二个是a select * from hr.employees where first_name not like '%a_' 排除姓名里倒数第二个字母是a的员工
HOW2J公众号,关注后实时获知最新的教程和优惠活动,谢谢。
提问已经提交成功,正在审核。 请于 我的提问 处查看提问记录,谢谢
|