The YEAR() function returns the year part for a specified date.
YEAR(
date)
Parameter | Description |
---|---|
date | Required. The date or datetime to extract the year from |
Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!