INSERT Statement Extension
Translation reference to convert Oracle INSERT Statement Extension to Snowflake Scripting
Some parts in the output code are omitted for clarity reasons.
Description
The PL/SQL extension to the SQL
INSERT
statement lets you specify a record name in thevalues_clause
of thesingle_table_insert
instead of specifying a column list in theinsert_into_clause.
(Oracle PL/SQL Language Reference INSERT Statement Extension)
Snowflake INSERT INTO differs from Snowflake Scripting in variable constraints; needing to have the names preceded by a colon ':' in order to bind the variables' value.
Recommendations
This code was executed to a better understanding of the examples:
INSERT Statement Extension simple case
Oracle
Snowflake Scripting
Known Issues
1. Records are not supported by Snowflake Scripting
Since records are not supported by snowflake scripting, instead of using the VALUES record
clause, it is necessary to change it into a SELECT clause and split the columns of the record. For more information please see the Record Type Definition Section.
Related EWIs
No related EWIs.
Last updated