mysql根据每天分组sql语句

来源:互联网 发布:软件开发类招聘合同 编辑:程序博客网 时间:2024/06/15 14:22
select FROM_UNIXTIME(create_time, '%Y-%m-%d') as dd, sum(shop_good_price) as count from drink_sold_goods where sold_status="已支付" GROUP BY FROM_UNIXTIME(create_time, '%Y-%m-%d');
原创粉丝点击