unoin all
select * from b) t
group by t.id
以date 分组 对字段B 求和
select max(date) as date ,sum(b) as b from tablename group by date order by date
欢迎分享,转载请注明来源:内存溢出
unoin all
select * from b) t
group by t.id
以date 分组 对字段B 求和
select max(date) as date ,sum(b) as b from tablename group by date order by date
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)