Mysql 查询一个月当前时间一个月之前的数据

sql:

select * from Biz_ExamCollection   where collectionType = 5 AND  date_format(createDTM,'%Y-%m-%d') <= date_format(DATE_SUB(curdate(), INTERVAL 1 MONTH),'%Y-%m-%d')