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

RedShift Input Code:

IN -> Redshift_01.sql
CREATE TABLE table1 (
    col1 INTEGER NOT NULL, 
    col2 INTEGER NULL
);

Snowflake Output Code:

OUT -> Redshift_01.sql
CREATE TABLE table1 (
    col1 INTEGER NOT NULL,
    col2 INTEGER NULL
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "redshift",  "convertedOn": "09/17/2024" }}'
;

There are no known issues.

Last updated