The Year() function returns the year part of a given date.
This function returns an integer between 100 and 9999.
Year(
date)
Parameter | Description |
---|---|
date | Required. A numeric or string expression that can represent a valid date |
Works in: | From Access 2000 |
---|
Return the year part of the "BirthDate" column in "Employees":
SELECT Year(BirthDate) FROM Employees;
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!