【发布时间】:2012-09-20 15:37:44
【问题描述】:
想象一下: t1 = 1 t2 = 3 t3 = 5
我需要在每个表上运行单独的选择,并以单个数量报告计数,即:
select *
from (select count(*) from t1)
+ (select count(*) from t2)
+ (select count(*) from t3);
我的最终结果应该是 = 9
【问题讨论】:
标签: mysql select count inner-join union-all