就是选择从第m条记录起的n条记录?
select top n * from (select top (m+n-1) * from test order by id desc ) x order by id
本文介绍了一种使用SQL实现从特定记录开始的分页查询方法,通过两次TOP选择结合降序及升序排列来实现目标数据的精确获取。
就是选择从第m条记录起的n条记录?
select top n * from (select top (m+n-1) * from test order by id desc ) x order by id
250

被折叠的 条评论
为什么被折叠?
