--between 操作符
-- 在where 子句中使用,选取介于两个值之间的数据范围,这些值可以是数字,文本,日期
------- 不同的数据库对 BETWEEN...AND 操作符的处理方式是有差异的。
------- 某些数据库会列出介于 "Adams" 和 "Carter" 之间的人,但不包括 "Adams" 和 "Carter" ;
------- 某些数据库会列出介于 "Adams" 和 "Carter" 之间并包括 "Adams" 和 "Carter" 的人;
------- 而另一些数据库会列出介于 "Adams" 和 "Carter" 之间的人,包括 "Adams" ,但不包括 "Carter" 。
--------例如oracle数据库中 between..and 是闭区间
select * from zhonghq_user where user_age between 22 and 33;--包括22和33
select * from zhonghq_user where user_age not between 322 and 333;--不包括322和333
--例1: between....and
select * from zhonghq_user where user_age between 22 and 33;
--例2. not....between.....and
select * from zhonghq_user where user_age not between 322 and 333;