mysql安裝月份,周,日統計

 select DATE_FORMAT(order_date,'%Y%m') months,count(order_no) count from so_order group by months; test  select DATE_FORMAT(order_date,'%Y%u') weeks,count(order_no) count from test group by weeks; dat
相關文章
相關標籤/搜索