1、今天select * from 表名 where to_days(时间字段名) = to_days(now())2、昨天select * from 表名 where to_days( now( ) ) - to_days( 时间字段名) <= 13、近7天select * from 表名 where date_sub(curdate(), …
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …