Snowflake Vs MS-SQL - Part 14 - Clone Table


Clone Table

In day-to-day activity, you need to take back-up of the part of the table or the whole table. But you can see multiple versions of the table over the period on the server. This leads to extra space consumption as well

MS-SQL Server 

You can take the backup of the table as a DBA process or you can use the INTO clause to create a table during run time.



In Snowflake we can achieve this by using CLONE

The cloning feature provides a convenient way to quickly take a “snapshot” of any table, schema, or database.

It does not copy the table or object physically rather the cloned object inherits any other metadata, such as comments or table clustering keys, that is current in the source object when the statement is executed.




For more details, you can refer to the following LINK as well as 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