1. w3schools.com
          THE WORLD'S LARGEST WEB DEVELOPER SITE

          SQL Tutorial

          SQL HOMESQL IntroSQL SyntaxSQL SelectSQL Select DistinctSQL WhereSQL And, Or, NotSQL Order BySQL Insert IntoSQL Null ValuesSQL UpdateSQL DeleteSQL Select TopSQL Min and MaxSQL Count, Avg, SumSQL LikeSQL WildcardsSQL InSQL BetweenSQL AliasesSQL JoinsSQL Inner JoinSQL Left JoinSQL Right JoinSQL Full JoinSQL Self JoinSQL UnionSQL Group BySQL HavingSQL ExistsSQL Any, AllSQL Select IntoSQL Insert Into SelectSQL CaseSQL Null FunctionsSQL Stored ProceduresSQL Comments

          SQL Database

          SQL Create DBSQL Drop DBSQL Backup DBSQL Create TableSQL Drop TableSQL Alter TableSQL ConstraintsSQL Not NullSQL UniqueSQL Primary KeySQL Foreign KeySQL CheckSQL DefaultSQL IndexSQL Auto IncrementSQL DatesSQL ViewsSQL InjectionSQL Hosting

          SQL References

          SQL KeywordsMySQL FunctionsSQL Server FunctionsMS Access FunctionsSQL OperatorsSQL Data TypesSQL Quick Ref

          SQL Examples

          SQL ExamplesSQL QuizSQL ExercisesSQL Certificate

          SQL Server YEAR() Function

          ❮ SQL Server Functions

          Example

          Return the year part of a date:

          SELECT YEAR('2017/08/25') AS Year;
          Try it Yourself »

          Definition and Usage

          The YEAR() function returns the year part for a specified date.

          Syntax

          YEAR(date)

          Parameter Values

          Parameter Description
          date Required. The date or datetime to extract the year from

          Technical Details

          Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

          More Examples

          Example

          Return the year part of a date:

          SELECT YEAR('1998/05/25 09:08') AS Year;
          Try it Yourself »

          ❮ SQL Server Functions

              1. http://www.mh8dociw.tw | http://m.mh8dociw.tw | http://wap.mh8dociw.tw | http://3g.mh8dociw.tw | http://4g.mh8dociw.tw | http://5g.mh8dociw.tw | http://mobile.mh8dociw.tw | http://vip.mh8dociw.tw | http://ios.mh8dociw.tw | http://anzhuo.mh8dociw.tw | http://0b.mh8dociw.tw | http://97.mh8dociw.tw | http://1e08.mh8dociw.tw | http://120e.mh8dociw.tw | http://4868.mh8dociw.tw | http://7.mh8dociw.tw | 爱情岛一独家网址大全