从日期中提取年月日

select day(date), month(date), year(date) from user;

day, month, year取出的是数字

原文地址:https://www.cnblogs.com/mydesky2012/p/15812682.html