SnowConvert AI - IBM DB2 - CREATE TABLE¶
Description¶
The complete CREATE TABLE syntax for IBM DB2 is big enough that it does not fit on one page. However, the following image shows an overview of the syntax with some logical grouping that is later referenced.
Grammar Syntax¶

As Result Table¶
Description¶
Specifies that the columns of the new table have the same name, data type, and optionally same data, as the result from the fullselect.
Warning
AS RESULT TABLE is partially supported in Snowflake. The Copy options do not apply in Snowflake.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Grammar Syntax¶



Sample Source Patterns¶
IBM DB2¶
Snowflake¶
IBM DB2¶
Snowflake¶
Materialized Query Definition¶
Description¶
Materialized query tables (MQTs) are tables whose definition is based on the result of a query.
Currently, translation for the IBM DB2 Materialized Query is not supported by SnowConvert AI
See the DB2 materialized query definition documentation for this syntax.
Grammar Syntax


Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0021: NODE NOT SUPPORTED
Of Type
Description
Specifies that the columns of the table are based on the attributes of the structured type.
Click here to navigate to the IBM DB2 documentation page for this syntax.
TYPED TABLES are not supported in Snowflake.
Grammar Syntax¶


Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-DB0017: NODE NOT SUPPORTED
Staging Table Definition¶
Description¶
A staging table allows incremental maintenance support for deferred materialized query table.
STAGING TABLES are not supported in Snowflake.
See the DB2 staging data tables or the staging table definition syntax in the IBM DB2 documentation.
Grammar Syntax

Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0018: NODE NOT SUPPORTED
Element List
Check Constraint
Description
Constraints are used to specify rules for the data in a table.
See the DB2 column options documentation for this syntax.
Warning
Some CONSTRAINT options are migrated as is to Snowflake but some of them are removed because of platform differences. Check the code example to learn more.
Grammar Syntax¶


Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-0035: Check Statement Not Supported.
Period Definition¶
Description¶
Defines a period of time in which the data of a row is valid.
Warning
PERIOD-DEFINITION does not have a functional equivalent in Snowflake.
Note
Snowflake allows the storage of historical table data for up to 90 days, to know more about this see Understanding & Using Time Travel.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Grammar Syntax¶

Sample Source Patterns¶
Related EWIs¶
SSC-EWI-DB0003: Period definition is not applicable in Snowflake.
Referential Constraint¶
Description¶
Foreign Key Constraints are migrated through ALTER TABLE statements to remove dependencies at the table creation time and therefore facilitate database deployment.
See the DB2 column options documentation for this syntax.
Grammar Syntax¶


Sample Source Patterns¶
QUERY OPTIMIZATION¶
Description¶
Specifies whether the constraint or functional dependency can be used for query optimization under appropriate circumstances.
See the DB2 WITHOUT OVERLAPS documentation for this syntax.
Warning
ENABLE QUERY OPTIMIZATION Constraint attributes are removed because they are not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
WITHOUT OVERLAPS¶
Description¶
BUSINESS_TIME WITHOUT OVERLAPS means that for the other specified keys, the values are unique with respect to time for the BUSINESS_TIME period
See the DB2 column options documentation for this syntax.
Warning
BUSINESS_TIME WITHOUT OVERLAPS Constraint attribute is removed because they are not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Column Options¶
COMPRESS¶
Description¶
Specifies that system default values are to be stored using minimal space.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
COMPRESS SYSTEM DEFAULT is removed because it is not applicable in Snowflake
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Known issues¶
There are no known issues.
INLINE LENGTH¶
Description¶
Identifies the Inline Length of the reference type column.
See the DB2 INLINE LENGTH documentation for this syntax
Warning
INLINE LENGTH is removed because it is not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Known issues¶
There are no known issues.
LOB OPTIONS¶
Description¶
Options for the LOB (Large Object Binary) data types
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
LOB OPTIONS are removed because they are not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
SCOPE¶
Description¶
Identifies the scope of the reference type column.
For this syntax, see the IBM CREATE TABLE statement documentation.
Warning
SCOPE options are removed because they are not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
SECURED¶
Description¶
Identifies a security label that exists for the security policy that is associated with the table.
See the DB2 security label documentation for this syntax.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Known issues¶
If multiple security labels are declared an SSC-EWI-DB0001will appear in the Snowflake output code as shown below
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-DB0001Multiple Row Access policies
Table Options¶
CCSID¶
Description¶
Specifies the encoding scheme for string data that is stored in the table.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
CCSID is not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-FDM-0027: REMOVED STATEMENT, NOT APPLICABLE IN SNOWFLAKE.
Compression Options¶
Description¶
Specifies whether row compression is to be used for the table.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
The Compression Options are not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-FDM-0027: REMOVED STATEMENT, NOT APPLICABLE IN SNOWFLAKE.
Data Capture¶
Description¶
Indicates whether extra information for inter-database data replication is to be written to the log.
Click here to navigate to the IBM DB2 documentation page for this syntax.
DATA CAPTURE is not supported
Grammar Syntax

Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0020: NODE NOT SUPPORTED
REMOVED CLAUSES
Description
The following clauses are removed in SnowConvert AI since they are not applicable in Snowflake:
DistributionClauseNot Logged InitiallyClauseOptionsClauseOrganize byClausePartition byClauseSecurity PolicyClauseInClauseLong InClauseIndex InClauseWith Restrict OnClause
Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-FDM-0027: REMOVED STATEMENT, NOT APPLICABLE IN SNOWFLAKE.
