改正一下select mc,总数=sum(zh) from(select mc,zh from Aunion allselect mc,zh from B)group by mc
吐血.........看错题目了!!不好意思
谢谢3楼那头猪。。我少加了个distinct~~