1. 程式人生 > >sql server2008 分頁。分段查詢

sql server2008 分頁。分段查詢

SELECT * FROM (SELECT *,ROW_NUMBER() OVER (ORDER BY postime) AS RowNumber FROM day1101) day1101
WHERE RowNumber > 100 AND RowNumber <= 200 ORDER BY postime

其中day1101為表名,postime為排序欄位