Selecting all records using SQL LIMIT and OFFSET query

后端 未结 7 590
一向
一向 2020-12-08 20:09

I wonder if there is a way to accomplish:

SELECT * FROM table

by using LIMIT and OFFSET like so:

         


        
7条回答
  •  悲哀的现实
    2020-12-08 20:22

    Maybe not the cleanest solution but setting limit to a very high number could work. Offset needs to be 0.

    Why not use a IF statement where you add the limit and offset to the query as a statement is true?

提交回复
热议问题