1
Efraim 2018 年 4 月 26 日
select year ,sum(if(month=1,amount,0)) as m1,sum(if(month=2,amount,0)) as m2,sum(if(month=3,amount,0)) as m3,sum(if(month=4,amount,0)) as m4 from test group by year;
|