MySQL offset infinite rows

前端 未结 9 2219
星月不相逢
星月不相逢 2020-11-22 16:25

I would like to construct a query that displays all the results in a table, but is offset by 5 from the start of the table. As far as I can tell, MySQL\'s LIMIT

9条回答
  •  独厮守ぢ
    2020-11-22 17:13

    From the MySQL Manual on 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;
    

提交回复
热议问题