<分区>
Possible Duplicate:
How to write a (MySQL) “LIMIT” in SQL Server?
如何使用 SQL-Server 的 LIMIT
更改我的查询?
SELECT apretiz FROM tableApoint WHERE price = '$newprice' LIMIT 5;
如何更改 LIMIT 5,10
?我可以使用 TOP
吗?
<分区>
Possible Duplicate:
How to write a (MySQL) “LIMIT” in SQL Server?
如何使用 SQL-Server 的 LIMIT
更改我的查询?
SELECT apretiz FROM tableApoint WHERE price = '$newprice' LIMIT 5;
如何更改 LIMIT 5,10
?我可以使用 TOP
吗?
最佳答案
从 SQL Server 2012 开始,您可以编写
...
ORDER BY thisColumn, thatColumn
OFFSET 5 ROWS FETCH NEXT 5 ROWS ONLY
关于sql - MySQL 语法 LIMIT x, y 的 T-SQL 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10440688/