YEAR

2024-04-19 08:42:50  Updated

Syntax

YEAR(date)

Purpose

YEAR() returns the year of date.

Examples

obclient> SELECT YEAR('1987-01-01');
+--------------------+
| YEAR('1987-01-01') |
+--------------------+
|               1987 |
+--------------------+
1 row in set

Contact Us