sqlserver,查询第n到m条记录,其中id为唯一 1、select top m-n+1 * from score where (id not in (select top n-1 id from score)) 2、select top m-n * from yourtable where id not in(select top n-1 id from table) 3、select top m-n * from 表名 wher
sqlserver,网站空间,查询第n到m条记录,香港服务器租用,其中id为唯一
1、select top m-n+1 *
from score
where (id not in
(select top n-1 id
from score))
2、select top m-n * from yourtable where id not in(select top n-1 id from table)
3、select top m-n * from 表名 where id in (select distinct(id) from 表名)
有时间记录下,香港空间,上面三种方法,只用了第一种就没再试了。
发表于