无限制地偏移 MySQL

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3173635/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 16:28:19  来源:igfitidea点击:

Offset MySQL Without Limit

mysql

提问by Kevin Sylvestre

Possible Duplicate:
Mysql Offset Infinite rows

可能的重复:
Mysql Offset Infinite rows

Is it possible to specify a query in MySQL with a 'offset' but without a 'limit'. For example:

是否可以在 MySQL 中指定带有“偏移量”但没有“限制”的查询。例如:

SELECT * FROM countries OFFSET 2

Fails, but:

失败,但是:

SELECT * FROM COUNTRIES LIMIT 8 OFFSET 2

Works fine. I'd like to just specify the offset. Thanks!

工作正常。我只想指定偏移量。谢谢!

回答by George Marian

Basically, no. Limit must be supplied. See this SO question for a solution.

基本上,没有。必须提供限制。 请参阅此 SO 问题以获取解决方案。