Answers for "sql convert date to year month"

SQL
1

sql convert datetime to year month

DATE_FORMAT(_column, '%Y-%m')AS `yyyy-mm`,
Posted by: Guest on February-25-2021
0

sql convert datetime to year

select YEAR(getdate())
/* 2020 */
Posted by: Guest on December-23-2020

Code answers related to "sql convert date to year month"

Code answers related to "SQL"

Browse Popular Code Answers by Language