timestamp
function
Applies to: Databricks SQL Databricks Runtime
Casts expr
to TIMESTAMP. This function is a synonym for CAST(expr AS TIMESTAMP)
. For details see cast function.
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clause更新しました 2024/11/15
timestamp
function Applies to: Databricks SQL Databricks Runtime
Casts expr
to TIMESTAMP. This function is a synonym for CAST(expr AS TIMESTAMP)
. For details see cast function.
> SELECT timestamp('2020-04-30 12:25:13.45');
2020-04-30 12:25:13.45
> SELECT timestamp(date'2020-04-30');
2020-04-30 00:00:00
> SELECT timestamp(123);
1969-12-31 16:02:03