Local Variables and Parameters
Description
Redshift also allow to SELECT INTO variables when the statement is executed inside stored procedures.
This pattern is fully supported in Snowflake.
Grammar Syntax
SELECT [ select_expressions ] INTO target [ select_expressions ] FROM ...;Sample Source Patterns
SELECT INTO with expressions at the left
Input Code:
param1
10
Output Code:
TEST_SP1
{ "param1": 10 }
SELECT INTO with expressions at the right
Input Code:
param1
10
Output Code:
Since Snowflake doesn't support this grammar for SELECT INTO, the expressions are moved to the left of the INTO.
TEST_SP1
{ "param1": 10 }
Known Issues
There are no known issues.
Related EWIs.
There are no related EWIs.
Last updated
