Snowflake Vs MS-SQL - Part 4 - Truncate and Insert

    



Truncate and Insert 

 

MS-SQL Server 

Suppose if you want to Insert new set of data in a table and prior to that if you want to remove all records then you can achieve this in two steps.

1. First Truncate/Delete all records from the table.

2. Insert new records into the table.




However in Snowflake we can achieve this in single step.

Insert statement is having an optional parameter OVERWRITE. This parameter specifies that the target table should be truncated before inserting the values into the table.



For more details, you can refer the following LINK.


Yogesh Shinde

LinkedInProfile

<<< Back Next >>>

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Part 36 - SPLIT_TO_TABLE

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

Snowflake Vs MS-SQL - Part 33 - INITCAP