Limit and Offset

suggest change

Syntax

SELECT column_1 [, column_2 ]
FROM table_1
ORDER BY order_column
LIMIT row_count [OFFSET row_offset]
SELECT column_1 [, column_2 ]
FROM table_1
ORDER BY order_column
LIMIT [row_offset,] row_count

Remarks

LIMIT is the maximum number of rows to return. It does not change how many rows the table can hold.

OFFSET skips that many rows of the result. It is not a primary-key value or other column value. Without ORDER BY, which rows you get is not defined.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents