Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql get year from datetime field

SELECT YEAR(DateTimeField)
FROM MyTable
Source by www.sqltutorial.org #
 
PREVIOUS NEXT
Tagged: #sql #year #datetime #field
ADD COMMENT
Topic
Name
6+4 =