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.
Boolean Data Type
Bytes Data Type
Datetime Data Types
Supported data type in Snowflake. DATE accepts dates in the most common forms (YYYY-MM-DD
, DD-MON-YYYY
, etc.).
TIMESTAMP data type is converted to TIMESTAMP_TZ. For more information, please refer to the TIMESTAMP data type documentation.
Geography Data Type
Interval Data Type
INTERVAL data type is not supported in Snowflake. VARCHAR is used instead. For more information, please refer to the INTERVAL data type documentation.
Json Data Type
Numeric Data Types
INT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
INT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
SMALLINT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
INTEGER is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
BIGINT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
TINYINT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
BYTEINT is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
NUMERIC is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
DECIMAL is an alias for the NUMBER data type in Snowflake. The maximum precision and scale is NUMBER(38,37).
NUMERIC​
BIGNUMERIC data type is not supported in Snowflake. NUMERIC is used instead. The precision and scale maximum was reduced to NUMBER(38,37).
BIGNUMERIC data type is not supported in Snowflake. DECIMAL is used instead. The precision and scale maximum was reduced to NUMBER(38,37).
String Data Types
Last updated
Was this helpful?