Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query
optimization, and usability that you won’t want to miss.
Extracts the year from the given datetime.
YEAR ( dateobj )
Integer
select year('2009-02-13');
+--------------------+
| year('2009-02-13') |
+--------------------+
| 2009 |
+--------------------+
Related Topics