/时间转成年月日时分秒select date_format(now(),'%Y%m%d%H%i%S')//时间转成年月日select date_format(now(),'%Y%m%d')//去年此时select DATE_ADD(now(), Interval -1 year)//上月此时select DATE_ADD(now(), Interval -1 month)//昨天此时select DATE_ADD(now(), Interval -1 day) //7天后select DATE_