LIMIT and OFFSET
Description
The parameter
count
specifies the maximum number of rows to return, whilestart
specifies the number of rows to skip before starting to return rows. When both are specified,start
rows are skipped before starting to count thecount
rows to be returned.
Click here to navigate to the PostgreSQL documentation page for this syntax.
Grammar Syntax
When The ALL
clause is present it is translated to a NULL as shown in Snowflake documentation to ensure the same output
Sample Source Patterns
Setup Data
PostgreSQL
Code:
Result:
COL1 | COL2 |
---|---|
3 | third |
4 | fourth |
Snowflake
Code:
Result:
COL1 | COL2 |
---|---|
3 | third |
4 | fourth |
Last updated