2005 分頁 新利器 row_Number()

来源:互联网 发布:手机映射软件下载 编辑:程序博客网 时间:2024/06/11 01:25

select * from
(
select *, ROW_NUMBER() OVER (order by OrderColumn desc) as Pos from table_Name
WHERE  where_condition ) as T
where T.Pos > 10 and T.Pos <= 20

 

取10-20條記錄

原创粉丝点击