Snowflake Vs MS-SQL - Part 68 - Multi Table Insert

        



Multi Table Insert

We insert data into a table, and sometimes, we must archive/back it up in another table.


MS-SQL Server 

We can achieve this by using magic or virtual tables present, like INSERTED, as below:


However, in Snowflake, the insert statement has an additional clause, INSERT ALL, which allows you to insert into multiple tables: 




For more details, you can refer to the following: Multi_Table_Insert.


       

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP

Snowflake Vs MS-SQL - Part 70 - UNION By Name