The limit method is mainly used to specify the number of queries and operations, especially when using paging queries.
Number of queries
Query 10 user data:
Pass the instructions
function limit(int $one, ?int $two = null)
- $one If the second parameter is not passed, it means how many pieces of data are taken; if the second parameter is passed, it means starting from the first line.
- $tow Can not pass, if passed, it means starting from $one, taking $tow line data