mysql 统计当天,本周,本月,上一月的数据

今天 select * from `ht_invoice_information` where year(create_date)=year(date_sub(now(),interval 1 year)); select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 select * from 表名 where to_days( now(
相关文章
相关标签/搜索