要做一个徘徊在牛A和牛C之间的人
假设有表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