统计每个月订单总额

select sum(money),time from (select uid,money,DATE_FORMAT(datetime,'%y-%c')time from fx_record) as a group by time
相关文章
相关标签/搜索