标签: sql-server-2005
如何在SQL Server数据库中实现分页,它没有像mysql这样的LIMIT关键字?
答案 0 :(得分:0)
您也可以使用row_number()
row_number()
答案 1 :(得分:-1)
它不使用LIMIT,但您可以使用TOP:
SELECT TOP 10 * FROM foo WHERE whateverPagingID >= 650 /* or whatever the last page started with */ ORDER BY pagingID;