Snowflake Vs MS-SQL - Part 93 - MERGE ALL BY NAME


MERGE ALL BY NAME

If you are performing upsert operations, you need to provide a list of columns in the Update as well as the Insert clause.

MS-SQL Server 

We can achieve it as follows:



In Snowflake, we can use the same query as above; however, we can use MERGE as follows:




For more details, refer to the MERGE-By-Using-All-By-Name section.



Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

Snowflake Vs MS-SQL - Part 75 - String Length and Trimmed Length