select 店名, sum(1月) as 1月, sum(2月) as 2月, sum(3月) as 3月, sum(4月) as 4月, sum(5月) as 5月 from (select * from table1 union all select * from table2) a group by 店名
有问题追问