DATE Data Type
Last updated
Last updated
Oracle's date data type stores both date and time information, however Snowflake's date data type only stores date information. ()
The default transformation for Oracle DATE
is to Snowflake TIMESTAMP
. You can add the disableDateAsTimestamp
flag (SnowConvert Command Line Interface) or disable the Transform Date as Timestamp setting (SnowConvert desktop application) in order to transform the DATE
type to TIMESTAMP
. Keep in mind that Snowflake DATE
only stores date information and Oracle stores date and time information, if you want to avoid losing information you should transform DATE
to TIMESTAMP
.
In Snowflake, DATE
input and output formats depend on the DATE_INPUT_FORMAT
and DATE_OUTPUT_FORMAT
session variables. Insertions may fail because the DATE_INPUT_FORMAT
enforces the user to use a specific format when a date is added by text. You can modify those variables using the following syntax.