Like Table

Description

Specifies that the columns of the table have the same name and description as the columns of the specified table.

LIKE TABLES are partially supported in Snowflake. The Copy options doesn't not apply in Snowflake

Click here to navigate to the IBM DB2 docs page for this syntax.

Grammar Syntax

Sample Source Patterns

IBM DB2

CREATE TABLE Table1 LIKE Table2
INCLUDING COLUMN DEFAULTS
INCLUDING IDENTITY;

Snowflake

CREATE TABLE PUBLIC.Table1 LIKE Table2
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE.  **
--INCLUDING COLUMN DEFAULTS
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE.  **
--INCLUDING IDENTITY
                  ;";

  1. MSCEWI1002 : NOT APPLICABLE IN SNOWFLAKE

Last updated