Answers for "how to get only year from date in sql"

SQL
1

print year of a date sql

SELECT EXTRACT(YEAR FROM CURRENT_DATE)
Posted by: Guest on November-22-2020
0

sql get year from datetime field

SELECT YEAR(DateTimeField)
FROM MyTable
Posted by: Guest on May-13-2021

Code answers related to "how to get only year from date in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language