CREATE SNAPSHOT TABLE
Creates a table snapshot based on a source table. The source table can be a table, a table clone, or a table snapshot.
Grammar Syntax
CREATE SNAPSHOT TABLE [ IF NOT EXISTS ] table_snapshot_name CLONE source_table_name [FOR SYSTEM_TIME AS OF time_expression] [OPTIONS(snapshot_option_list)]
Click here to go to the specification for this syntax.
Sample InputCode
CREATE SNAPSHOT TABLE mytablesnapshot
CLONE mytable;Snowflake OutputCode
CREATE
-- ** MSC-ERROR - MSCEWI1021 - SNAPSHOT IS NOT SUPPORTED **
-- SNAPSHOT
TABLE mytablesnapshot CLONE mytable; ;If the Create Table has options, these will be commented since they are not supported in Snowflake. Except for the "description" option.
Sample InputCode
Snowflake OutputCode
Note
The LABELS are not transformed into TAGs because the TAGs of the source table are copied, they cannot be changed during the copy of the table.
Related EWIs
MSC-BQ0002: The use of Snapshot Table is not supported in Snowflake.
MSC-BQ0001: The OPTIONS clause within CREATE TABLE is not supported in Snowflake when it contains the following options.
Last updated
Was this helpful?