How can I do server side pagination of results in SQL Server 2000?
问题 In SQL Server 2005, there is a feature called row_number() which makes pagination very simple. SELECT * FROM table WHERE row_number() between x and y Is there any SQL server way to do the same thing in SQL Server 2000? (Note: I don't have access to a unique sequential numbering for the query, i.e. something which would be a synonym for row_number()) 回答1: SELECT * FROM ( SELECT TOP (Y - X ) * FROM ( SELECT TOP Y * FROM mytable ORDER BY column ) q ORDER BY column DESC ) ORDER BY column 回答2: Not