MYSQL統計一週,一個月的數據

統計一週 select * from `表名`ct where week(`時間字段`) = week(now()) ORDER BY 個人例子:select * from t_circle_topic ct where week(ct.create_time) = week(now()) ORDER BY ct.create_time DESC; 統計一個月 select * from `表名`
相關文章
相關標籤/搜索