- 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 DATE_FORMAT(create_time,'%Y%m') months,count(caseid) count from tc_case group by months;
mysql相关
猜你喜欢
转载自bernoulli.iteye.com/blog/2257965
今日推荐
周排行