武汉的士司机电话号码:sql 查询两个值之间的语法
来源:百度文库 编辑:中科新闻网 时间:2024/05/23 16:52:04
例如:要查询出 age小于50 大于18 之间的所有值
select * from tablename where age>18 and age<50;
或者
select * from tablename where age between 18 and 50;
select * from tablename where age>18 and age<50;
或者
select * from tablename where age between 18 and 50;