EXECUTE
Last updated
Last updated
The
EXECUTE
IMMEDIATE
statement builds and runs a dynamic SQL statement in a single operation.Native dynamic SQL uses the
EXECUTE
IMMEDIATE
statement to process most dynamic SQL statements. ()
Concated Example
Input Code
Output Code
SnowScripting does not support INTO nor BULK COLLECT INTO clauses. For this reason, results will need to be passed through other means.
In some scenarios there an execute statement may be commented regardless of being safe or non-safe to run so please take this into account:
: Variable with invalid query.
: The statement below has usages of dynamic SQL.