假设有表TableA,字段为FieldA, FieldB,查询第10到20条记录,SQL如下:

select * 
from 
    (
        select row_number() over(order by FieldA) as RowNum, * 
        from 
            TableA
    ) t 
where 
  t.RowNum between 10 and 20
Posted on 2007-07-23 16:33  Clark Zheng  阅读(2615)  评论(13编辑  收藏  举报