MySQL offset infinite rows

前端 未结 9 2218
星月不相逢
星月不相逢 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

    As others mentioned, from the MySQL manual. In order to achieve that, you can use the maximum value of an unsigned big int, that is this awful number (18446744073709551615). But to make it a little bit less messy you can the tilde "~" bitwise operator.

      LIMIT 95, ~0
    

    it works as a bitwise negation. The result of "~0" is 18446744073709551615.

提交回复
热议问题