select threadid from
(
select threadid, ROW_NUMBER() OVER (order by stickydate) as Pos from cs_threads
) as T
where T.Pos > 100000 and T.Pos < 100030
(
select threadid, ROW_NUMBER() OVER (order by stickydate) as Pos from cs_threads
) as T
where T.Pos > 100000 and T.Pos < 100030
本文介绍了一种使用SQL进行分页查询的优化方法,通过ROW_NUMBER()窗口函数结合子查询的方式,实现高效的大范围分页操作。这种方法适用于需要从大量数据中检索特定范围记录的场景。
130

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



