Mysql按天分组(按日分组)

SELECT DATE_FORMAT(start_stamp,"%Y-%m-%d")as day,sum(fee) as total_fee
FROM bill
GROUP BY DATE_FORMAT(start_stamp,"%Y-%m-%d")
posted @ 2020-01-30 18:36  未月廿三  阅读(5710)  评论(0编辑  收藏  举报