Selecting all records using SQL LIMIT and OFFSET query

后端 未结 7 576
一向
一向 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:24

    This may not be the best way to do it, but its the first that comes to mind...

    SELECT * FROM myTable LIMIT 0,1000000

    Replace 1000000 with some adequately large number that you know will always be larger than the total number of records in the table.

提交回复
热议问题