access表中有个学号字段,是文本型.想查询一定范围的学号,如何写条件表达式?
来源:百度知道 编辑:UC知道 时间:2024/05/30 07:10:45
如查询学号为620到720间的学生
用下面的表达式.
select * from 表 where 学号 between 620 and 720
也可以用下面的表达式
select * from 表 where 学号>620 and 学号<720
如何含临界点把< 、 >换成 <= 、 >=
文本的话要引起来
select * from 表 where 学号 between ‘620’ and ‘720’ ....
sql="select xuehao from biao Where xuehao>=620 and xuehao=<720 order by xuehao desc"