YEAR()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Returns the year for the given date, in the range 1000 to 9999, or 0 for the "zero" date.
EXAMPLES
SELECT YEAR('2020-01-01');
+--------------------+
| YEAR('2020-01-01') |
+--------------------+
| 2020 |
+--------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.