MySql按周,按月,按日分組統計數據

知識關鍵詞:DATE_FORMATweb select DATE_FORMAT(create_time,'%Y%u') weeks,count(caseid) count from tc_case group by weeks; select DATE_FORMAT(create_time,'%Y%m%d') days,count(caseid) count from tc_case
相關文章
相關標籤/搜索