查询一天:
select * from 表名 where to_days(column_time) = to_days(now());
select * from table where date(column_time) = curdate();
查询一周:
select * from 表名 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(column_time);
查询一个月:
select * from 表名 where DATE_SUB(CURDATE(), INTERVAL INTERVAL 1 MONTH) <= date(column_time);