NOT NULL | NULL

Description

NOT NULL specifies that the column isn't allowed to contain null values. NULL, the default, specifies that the column accepts null values.

Click here to navigate to the Amazon Redshift docs page for this syntax.

Grammar Syntax

NOT NULL | NULL

Sample Source Patterns

Amazon Redshift

CREATE TABLE TABLE1 
(
 COL1 VARCHAR(15) NOT NULL,
 COL2 VARCHAR(15) NULL
);

Snowflake

CREATE TABLE TABLE1
(
 COL1 VARCHAR(15) NOT NULL,
 COL2 VARCHAR(15) NULL
);

Known issues

There are no known issues.

Last updated