mysql 取年、月、日、时间
select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xxxxxx' #分别取年、月、日、时间
select id, phone,time from user where phone='xxxxxx' #
select id, phone,time,year(time) from user where phone='xxxxxx' #分别取年
select id, phone,time,month(time) from user where phone='xxxxxx' #分别取月
select id, phone,time,DAY(time) from user where phone='xxxxxx' #分别取日
select id, phone,time,TIME(time) from user where phone='xxxxxx' #分别取时间
若标题中有“转载”字样,则本文版权归原作者所有。若无转载字样,本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.