The EXTRACT() function is used to return a single part of a date/time, such as year, month, day, hour, minute, etc.
Where date is a valid date expression and unit can be one of the following:
Syntax
EXTRACT(unit FROM date)
Unit Value |
---|
MICROSECOND |
SECOND |
MINUTE |
HOUR |
DAY |
WEEK |
MONTH |
QUARTER |
YEAR |
SECOND_MICROSECOND |
MINUTE_MICROSECOND |
MINUTE_SECOND |
HOUR_MICROSECOND |
HOUR_SECOND |
HOUR_MINUTE |
DAY_MICROSECOND |
DAY_SECOND |
DAY_MINUTE |
DAY_HOUR |
YEAR_MONTH |
0 comments:
Post a Comment