ASP查询代码如何只查询固定的数值

2025-03-24 00:19:56
推荐回答(1个)
回答1:

假如要查询的字段是ID,那么写法如下“
7-10:sql="select * from [xmtype] where id>6 and id<11 order by [nu]"
1-10:sql="select * from [xmtype] where id>0 and id<11 order by [nu]"
11-20:sql="select * from [xmtype] where id>10 and id<21 order by [nu]"
也可以写成 id>=7 and id<=10