SnowConvert AI - Sybase IQ - CREATE TABLE¶
Description¶
Creates a new table in the current database. You define a list of columns, which each hold data of a distinct type. The owner of the table is the issuer of the CREATE TABLE command.
For more information, please refer to CREATE TABLE documentation.
Grammar Syntax ¶
TEMPORARY TABLES¶
Description¶
In Sybase IQ GLOBAL | LOCAL TEMPORARY is used to create temporary tables that exist only for the session. These tables are session-specific and automatically deleted when the session ends. They help store intermediate results or work data without affecting the permanent database schema. It also can be created only by adding an # at the beginning of the name.
Warning
This syntax is partially supported in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Sybase¶
IF NOT EXISTS¶
Description¶
Ensures the table is created only if it does not already exist, preventing duplication and errors in your SQL script. (Sybase SQL Language Reference).
SuccessPlaceholder
This syntax is fully supported in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
(ENABLE | DISABLE) RLV STORE¶
Description¶
Controls Row-Level Versioning Store functionality. (Sybase SQL Language Reference).
Note
This syntax is not needed in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
IN DBSPACE¶
Description¶
Specifies the DB space for data storage. (Sybase SQL Language Reference).
Note
This syntax is not needed in Snowflake. Snowflake automatically handles storage.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
ON COMMIT¶
Description¶
Specifies the behaviour of the temporary table when a commit is done. (Sybase SQL Language Reference)
Warning
This syntax is partially supported.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
Related EWIs¶
SSC-FDM-0008: On Commit not supported.
AT LOCATION¶
Description¶
Creates a remote table (proxy). (Sybase SQL Language Reference)
Danger
This syntax is not supported in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
Related EWIs¶
SSC-EWI-SY0002: UNSUPPORTED REMOTE TABLE SYNTAX.
PARTITION BY¶
Description¶
All rows of a table partition are physically colocated. (Sybase SQL Language Reference)
Note
This syntax is not needed in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
CONSTRAINTS¶
Description¶
This ensures the accuracy and reliability of the data in the table. If there is any violation between the constraint and the data action, the action is aborted. (Sybase SQL Language Reference)
Warning
This syntax is partially supported.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
Related EWIs¶
SSC-EWI-0035: CHECK STATEMENT NOT SUPPORTED.
SSC-EWI-SY0003: UNSUPPORTED IQ UNIQUE CONSTRAINT.
DEFAULT¶
Description¶
Defines the default value of a column in a create table.
Warning
This syntax is partially supported in Snowflake.