FETCH CURSOR
Description
Retrieves rows using a cursor. (Redshift SQL Language reference Fetch)
Transformation information
Sample Source Patterns
Setup data
Redshift
Snowflake
Fetch into
The FETCH into statement from Redshift is fully equivalent in Snowflake
Redshift
IN -> Redshift_01.sql
Snowflake
OUT -> Redshift_01.sql
Known Issues
1. Fetch without target variables is not supported
Snowflake requires the FETCH statement to specify the INTO clause with the variables where the fetched row values are going to be stored. When a FETCH statement is found in the code with no INTO clause an EWI will be generated.
Input Code:
Output Code:
Known Issues
There are no known issues.
Related EWIs
SSC-EWI-PG0015: Fetch cursor without target variables is not supported in Snowflake
Last updated