CREATE TABLE SNAPSHOT
Grammar syntax
Sample Source Patterns
General case
The Snapshot keyword is removed in Snowflake, transforming the table into a CREATE TABLE CLONE.
The two differences between snapshot and clones are that snapshots are not editable and usually have an expiration date. Expiration dates are not supported, this is handled as specified for the CREATE TABLE statement unsupported options.
Input Code:
Output Code:
FOR SYSTEM TIME AS OF
Input Code:
Output Code:
Note
The LABELS option in CREATE TABLE COPY statements are not transformed into TAGs because the TAGs of the source table are copied, they cannot be changed during the copy of the table.
Transformation of other table options are the same as specified for the CREATE TABLE statement.
Last updated