Sql skip the first row

This article is tagged with: Sql skip the first row and mysql

sql skip the first row

SELECT * FROM table WHERE something = 'whatever' LIMIT 10 OFFSET 1;

ms sql skip take

SELECT col1, col2, ...
FROM ...
WHERE ...
ORDER BY -- this is a MUST there must be ORDER BY statement
-- the paging comes here
OFFSET 10 ROWS -- skip 10 rows
FETCH NEXT 10 ROWS ONLY; -- take 10 rows

This article is tagged with: Sql skip the first row and mysql