本周内: select * from wap_content where week(created_at) = week(now) 查询一天: select * from table where to_days(column_time) = to_days(now());select * from table where date(column_time) = curdate(); 查询7天: select * from table where DATE_SUB(CURDATE(), INTER…