YEAR(t), MONTH(t), and DAY(t) are functions (
extraction) that extract the year, month, and day from the specified date or timestamp value.t:
date_or_timestamp_expression
Result of the function | |
YEAR(t), MONTH(t), or DAY(t) |
Numeric value (year, month, day) |
t is NULL value |
NULL value |