LIMIT & OFFSET

Pagination with limit and offset

Query

SQL

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.

Related tools

Other SQL examples