mysql日期函数 当前日期 curdate() , 当前年 year(curdate()), 取date的年份 year(date) ,取date的月份 month(date)
原文:http://www.cnblogs.com/maidou199006/p/7405926.html