sql中将两个表中数据相加求表中总数

2014-11-24 03:05:04 · 作者: · 浏览: 4

sql中将两个表中数据相加求表中总数
select sum(a) from
(
select COUNT(*) a from _aa2
union all
select COUNT(*) a from _aa1
) c