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)]
Sample InputCode
CREATE SNAPSHOT TABLE mytablesnapshot
CLONE mytable;Snowflake OutputCode
CREATE
-- ** MSC-ERROR - MSCEWI1021 - SNAPSHOT IS NOT SUPPORTED **
-- SNAPSHOT
TABLE mytablesnapshot CLONE mytable; ;Sample InputCode
Snowflake OutputCode
Note
Related EWIs
Last updated
Was this helpful?