select No,sum(select days from table1 where type=a) as a,sum(select days from table1 where type=a) as a,sum(select days from table1 where type=b) as b, sum(select days from table1 where type=b) as b,sum(days) from table1 group by No
select No,sum(select days from table1 where type=a) as a,sum(select days from table1 where type=b) as b,sum(select days from table1 where type=c) as c, sum(select days from table1 where type=d) as d,sum(days) as days from table1 group by No
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货