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 表名)
有时间记录下,香港空间,上面三种方法,只用了第一种就没再试了。
发表于
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号