SECOND
Extracts the second number (from 0 to 59) for a given date or timestamp.
Syntax
EXTRACT(SECOND FROM date_timestamp_expression string) → bigint
timestamp_expression: A
TIME
,TIMESTAMP
, orDATE
expression.
Examples
SECOND example using a timestamp.
SECOND example using a time.
SECOND example using the CAST function
Usage Notes
This function uses the EXTRACT
function. When using the CAST
function, timestamps containing milliseconds are not allowed.
Last updated