EXECUTE

Description

EXECUTE is used to execute a previously prepared statement

Click here to navigate to the PostgreSQL documentation page for this syntax.

Execute is partially supported by Snowflake.

Grammar Syntax

EXECUTE name [ ( parameter [, ...] ) ]

Sample Source Patterns

EXECUTE is translated to EXECUTE IMMEDIATE, and the EXECUTE of a function is translated to a CALL statement.

Input

EXECUTE 'ALTER TABLE "' || t_schema || '"."' || t_table || '" OWNER TO "' || t_owner || '"';

EXECUTE func1(param);

EXECUTE (query) into myVar;

Known Issues

The use of INTO clause in the EXECUTE statement is not supported en Snowflake.

Take in consideration that the expression being executed maybe not supported by Snowflake.

Last updated