MySQL偏移无限行
作者:互联网
我想构建一个查询,在表中显示所有结果,但从表的开头偏移5.据我所知,MySQL的LIMIT需要一个限制和一个偏移量.有没有办法做到这一点?
解决方法:
To retrieve all rows from a certain
offset up to the end of the result
set, you can use some large number for
the second parameter. This statement
retrieves all rows from the 96th row
to the last:
SELECT * FROM tbl LIMIT 95, 18446744073709551615;
标签:sql-limit,sql,mysql 来源: https://codeday.me/bug/20190911/1804373.html