-- 当月第一天 SELECT DATE_ADD(curdate(), INTERVAL - DAY(curdate()) + 1 DAY); -- 上个月第一天 select date_sub(DATE_ADD(curdate(), INTERVAL - DAY(curdate()) + 1 DAY), INTERVAL 1 month);-- 上个月今天的当前时间select date_sub(now(),interval 1 month);