mysql根据每天分组sql语句

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');

你可能感兴趣的:(学习笔记)