PREPARE
Translation specification to convert Teradata PREPARE statement to Snowflake Scripting. This section review the PREPARE pattern related to a cursor logic.
Description
PREPARE statement_name FROM { 'statement_string' | statement_string_variable } ;Sample Source Patterns
Data setting for examples
Simple scenario
Teradata
Col1
Snowflake Scripting
Col1
Simple scenario with RETURN ONLY
Teradata
Col1
Snowflake Scripting
Col1
Reused cursor case
Teradata
Snowflake Scripting
Modified query before usage
Teradata
Col1
Snowflake Scripting
Col1
Simple cursor combined with no PREPARE pattern
Teradata
Col1
Snowflake Scripting
Col1
Prepare combined with nested cursors
Teradata
Snowflake Scripting
Variable markers without variable reordering
Teradata
Col1
Snowflake Scripting
Col1
Variable markers with variable reordering
Teradata
Snowflake Scripting
Anonymous blocks - Declaration outside the block
Teradata
Known Issues
Related EWIs
Last updated
