EXECUTE/EXEC
Translation reference to convert Teradata EXECUTE or EXEC statement to Snowflake Scripting
Some parts in the output code are omitted for clarity reasons.
Description
The Teradata EXECUTE
statement allows the execution prepared dynamic SQL or macros, on the other hand exec only allows macros.
For more information regarding Teradata EXECUTE/EXEC, check Macro Form and Dynamic SQL Form
Sample Source Patterns
Setup data
The following code is necessary to execute the sample patterns present in this section.
IN -> Teradata_01.sql
Execute prepared statement
Teradata
IN -> Teradata_02.sql
Snowflake Scripting
OUT -> Teradata_02.sql
Execute macro statement
Teradata
IN -> Teradata_03.sql
Snowflake Scripting
OUT -> Teradata_03.sql
Related EWIs
SSC-EWI-0030: The statement below has usages of dynamic SQL.
SSC-EWI-0073: Pending Functional Equivalence Review.
Last updated