Extract
This section contains reference documentation for the Extract function.
Signature
Usage Examples
select EXTRACT(MONTH FROM '2017-06-15')value
select EXTRACT(YEAR FROM '2017-06-15 09:34:21')value
Was this helpful?
This section contains reference documentation for the Extract function.
Returns the selected field from the DATETIME expression.
EXTRACT(field FROM expression)
select EXTRACT(MONTH FROM '2017-06-15')06
select EXTRACT(YEAR FROM '2017-06-15 09:34:21')2017
Was this helpful?
Was this helpful?

