select DATE_FORMAT(date_sub(current_date(), interval 1 day), '%Y-%m-%d') -- 2018-05-29(昨天) select DATE_FORMAT(date_sub(current_date(), interval 31 day), '%Y-%m-%d 00:00:00') -- 2018-04-29 00:00:00 select DATE_SUB(current_date, INTERVAL 35 DAY) -- 201…