OPEN CURSOR

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Description

Before you can use a cursor to retrieve rows, it must be opened. (Redshift SQL Language Reference Open Cursor).

Grammar Syntax

OPEN bound_cursor_name [ ( argument_values ) ];

Sample Source Patterns

Setup data

Redshift

Snowflake

Open cursor without arguments

Input Code:

Output Code:

Open cursor with arguments

Cursor arguments have to be binded per each one of its uses, SnowConvert will generate the bindings, was well as reorder and repeat the passed values to the OPEN statement as needed to satisfy the bindings.

Redshift

Snowflake

Open cursor with procedure parameters or local variables

The procedure parameters or local variables have to be binded per each one of its uses in the cursor query, SnowConvert will generate the bindings and add the parameter or variable names to the OPEN statement, even if the cursor originally had no parameters.

Redshift

Snowflake

Known Issues

There are no known issues.

There are no related EWIs.

Last updated