Limit and Offset
suggest changeSyntax
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents