select sum(f1) fa from ( select sum(f2) fb from t1 union all select sum(f3) fc from t2 )
两个表t1和t2得 f2 , f3,同一个意义,可以一起sum,通过 union all 合并两个表得数据
select sum(f1) fa from ( select sum(f2) fb from t1 union all select sum(f3) fc from t2 )
两个表t1和t2得 f2 , f3,同一个意义,可以一起sum,通过 union all 合并两个表得数据
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。