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

sql: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')
相关文章
相关标签/搜索