OFFSET Clause
Much like the LIMIT clause specifies the number of records to be
returned, the OFFSET clause specifies the number of records to skip when
returning the output. The output will have $n$ skipped records and
display the remaining records.
Let's demonstrate this concept more practically. Let's begin by writing
a query that returns 10 rows of data from the customers table. We will
use the LIMIT clause as we did in the previous section.
SELECT *
FROM customers_new
LIMIT 10
Now, let's add an OFFSET clause specifying that we would like to skip
the first 5 rows.
select *
from customers
limit 5
offset 5
Notice that the output is still 5 rows of data but it is skipped the
first 5 rows of the output from the previous examples and only returned
the next 5 rows from the full output.