SELECT * FROM (SELECT Row_number () OVER(ORDER BY id) AS RowIndex, * FROM [TABLE_NAME]) tableObj WHERE tableObj.RowIndex BETWEEN 2 AND 3
简单实用的一个sqlserver 2005 UP分页语句
SELECT * FROM (SELECT Row_number () OVER(ORDER BY id) AS RowIndex, * FROM [TABLE_NAME]) tableObj WHERE tableObj.RowIndex BETWEEN 2 AND 3