mysql的sql语句中可以使用between来限定一个数据的范围,例如:
select * from user where userId between 5 and 7;
查询userId为5、6,7的user,userId范围是包含边界值的,也等同如下查询:
select * from user where userId >= 5 and userId <= 7;
很多地方都提到