Replacing of FIRST
/SKIP
and OFFSET
/FETCH
The ROWS
clause can be used instead of the SQL-standard OFFSET
/FETCH
or non-standard FIRST
/SKIP
clauses, except the case where only OFFSET
or SKIP
is used, that is when the whole result set is returned except for skipping the specified number of rows from the beginning.
To implement this behaviour using ROWS
, you must specify the TO
clause with a value larger than the size of the returned result set.