【发布时间】:2010-10-11 00:16:41
【问题描述】:
如何从两个不同的表中选择count(*)(称它们为tab1 和tab2),结果如下:
Count_1 Count_2
123 456
我试过了:
select count(*) Count_1 from schema.tab1 union all select count(*) Count_2 from schema.tab2
但我只有:
Count_1
123
456
【问题讨论】: