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.
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.
Comments
Post a Comment