1、时间段查询
MySQL:select * from table
where ctime >= CURDATE() and ctime <DATE_SUB(CURDATE(),INTERVAL -1 DAY);