假设有表TableA,字段为FieldA, FieldB,查询第10到20条记录,SQL如下:
select *
from
(
select row_number() over(order by FieldA) as RowNum, *
TableA
) t
where
t.RowNum between 10 and 20
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。