Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns the second component of the timestamp in expr
.
second(expr)
expr
: ATIMESTAMP
expression.
An INTEGER
.
This function is equivalent to int(extract(SECOND FROM timestamp))
.
> SELECT second('2009-07-30 12:58:59');
59