LIMIT & OFFSET
Pagination with limit and offset
QuerySQL
SELECT * FROM products ORDER BY price LIMIT 10 OFFSET 20;
What each clause does
LIMIT 10 returns at most 10 rows. OFFSET 20 skips the first 20 rows—useful for pagination.
Pagination with limit and offset
QuerySELECT * FROM products ORDER BY price LIMIT 10 OFFSET 20;
LIMIT 10 returns at most 10 rows. OFFSET 20 skips the first 20 rows—useful for pagination.