Skip to content
Justice Tech School

Simple Pagination

Page n of size s uses LIMIT s OFFSET (n-1)*s.

Example
SELECT id, name FROM students ORDER BY id LIMIT 3 OFFSET 3;

Result

id | name
4  | Wanjiru
5  | Tunde
6  | Zainab

Exercise

Page 2 of size 3.

LIMIT 3 OFFSET 

Quiz Test

What should pagination include?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.