EXECUTE IMMEDIATE
Translation reference to convert Teradata EXECUTE IMMENDIATE statement to Snowflake Scripting
Description
The Teradata EXECUTE IMMEDIATE statement allows the execution of dynamic SQL contained on variables or string literals.
For more information about EXECUTE IMMEDIATE click here.
-- EXECUTE IMMEDIATE syntax
EXECUTE IMMEDIATE <dynamic_statement>
<dynamic_statement> := {string_literal | string_variable}Sample Source Patterns
Setup data
The following code is necessary to execute the sample patterns present in this section.
CREATE TABLE inventory (
product_name VARCHAR(50),
price INTEGER
);CREATE TABLE PUBLIC.inventory (
product_name VARCHAR(50),
price INTEGER
);Execute Example
Teradata
Snowflake Scripting
Known Issues
No issues were found.
Related EWIs
MSCEWI1027: The following statement uses a variable/literal with an invalid query and it will not be executed.
MSCCP0004: The statement below has usages of dynamic SQL.
Last updated
Was this helpful?