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')
相關文章
相關標籤/搜索