limit is the syntax of mysql
select * from table limit m,n
Where m refers to the index of the beginning of the record, starting from 0, indicating the first record
n means starting from the m+1th item and taking n items.
select * from tablename limit 2,4
That is, take out the 3rd to 6th, 4th records
Commonly used for paging, m is the offset, n is the page number
limit start position (start from 0), display the number of bars;
The above example: SELECT * FROM `test` limit 2,4 His starting position is written as 2. Since it starts from 0, the real starting position is naturally 3, and the following 4 means to display 4 records.