Data Types

Snowflake supports most basic SQL data types (with some restrictions) for use in columns, local variables, expressions, parameters, and any other appropriate/suitable locations.

Exact and approximate numerics

Character strings

Character Large Object

Because of platform differences in terms of encoding and how strings are stored in each database, the safest translation for a Character Large Object data type with a specific data size is an unlimited VARCHAR datatype.

National Character String

National Character Large Object

Binary Large Object strings

Because of platform differences in terms of encoding and how strings are stored in each database, the safest translation for a Binary Large Object data type with a specific data size is an unlimited BINARY datatype.

Boolean

Date Time

Time with or without time zone

The data type Time does not support the clause with or without out Time Zone in Snowflake

ANSI SQL Input Code

CREATE TABLE TABLE_TEST (
    COLNAME1 TIME (9) WITH TIME ZONE,
    COLNAME2 TIME WITHOUT TIME ZONE
);

Snowflake Output Code

CREATE TABLE PUBLIC.TABLE_TEST (
    COLNAME1 TIME (9)
-- ** MSC-ERROR - MSCEWI1096 - TIME ZONE NOT SUPPORTED FOR TIME DATA TYPE **
--                      WITH TIME ZONE
                                    ,
    COLNAME2 TIME
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. WITHOUT TIME ZONE **
--                  WITHOUT TIME ZONE
);

Interval

For information on the Interval data type referred to Interval section

Last updated