select rq ,sum(ysje),sum(je),sum(she),sum(ml),sum(chbje),sum(ticheng) from(
select rq,ysje,sshje,je,she,ml,chbje,ticheng
from a
union all
select rq,ysje,sshje,je,she,ml,chbje,ticheng from b)
group by rq
这段语句不行 提示group by rq附近有语法错误 标点符号我也给改过来了
但是还是不行 单独执行
select rq,ysje,sshje,je,she,ml,chbje,ticheng
from a
union all
select rq,ysje,sshje,je,she,ml,chbje,ticheng from b
就可以 带上select rq ,sum(ysje),sum(je),sum(she),sum(ml),sum(chbje),sum(ticheng) from 就开始报错了 为什么呢