//查看本月数据 SELECT *FROMcontent_publishWHEREdate_format(publish_time, '%Y %m') = date_format(DATE_SUB(curdate(), INTERVAL 0 MONTH),'%Y %m') //查看上个月数据 SELECT*FROMcontent_publishWHEREdate_format(publish_time, '%Y %m') = date_format(DATE_SUB(curdate(), INT…