SORTKEY

Description

Constraint that specifies the column to be used as the distribution key for the table.

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

circle-exclamation

Grammar Syntax

[COMPOUND | INTERLEAVED ] SORTKEY ( column_name [,...]) | [ SORTKEY AUTO ]

Sample Source Patterns

Amazon Redshift

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

Snowflake

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

Last updated

Was this helpful?