Syntax
YEAR(date)
Purpose
You can call this function to return the year of date.
Examples
obclient> SELECT YEAR('1987-01-01');
+--------------------+
YEAR('1987-01-01')
+--------------------+
1987
+--------------------+
1 row in set (0.00 sec)