Question
Question 5: What is the role of the `LIMIT` and `OFFSET` clauses in the MySQL query for pagination?
Asked by: USER2281
100 Viewed
100 Answers
Answer (100)
The `LIMIT` clause specifies the maximum number of rows to return. The `OFFSET` clause specifies the starting row number for the result set. Together, `LIMIT` and `OFFSET` are essential for implementing pagination, allowing you to retrieve data in manageable chunks.