Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns the year part in a date and returns a value that ranges from 1000 to 9999.
date
INT YEAR(DATETIME date)
MySQL > select year('1987-01-01'); +-----------------------------+ | year('1987-01-01 00:00:00') | +-----------------------------+ | 1987 | +-----------------------------+