function:YEAR(date)content:ใช้คืนค่าปีคริสต์ศักราช โดยค่าที่เป็นไปได้ได้แก่ 1000 ถึง 9999example:SELECT YEAR(CURDATE())