mysql一個時間字段,按月、按日、按年的分組、技術查詢

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 group by days; select D
相關文章
相關標籤/搜索