日期取年.月.日 select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xx' #分别取年.月.日.时间select id, phone,time,year(time) from user where phone='xxxxxx' #取年 select id, phone,time,month(time) from user where phone='xxxxxx' #取…