SORTKEY

Description

The keyword that specifies that the column is the sort key for the table.

Click herearrow-up-right to navigate to the Amazon Redshift docs page for this syntax.

circle-exclamation

Grammar Syntax

SORTKEY

Sample Source Patterns

Amazon Redshift

CREATE TABLE TABLE1 
(
 COL1 INT SORTKEY,
 COL2 VARCHAR(15)
);

Snowflake

CREATE TABLE TABLE1
(
 COL1 INT
--          --** MSC-WARNING - MSC-RS0014 - SORTKEY OPTION NOT SUPPORTED. DATA STORAGE IS AUTOMATICALLY HANDLED BY SNOWFLAKE. **
--          SORTKEY
                 ,
 COL2 VARCHAR(15)
);

MCS-RS0014arrow-up-right: SORTKEY option not supported. Data storage is automatically handled by Snowflake.

Last updated

Was this helpful?