日期:2014-05-18 浏览次数:20764 次
select p1,count(1)
from
(select p1 from table1
union all
select p2 from table2
union all
select p3 from table3
union all
select p4 from table4
union all
select p5 from table5
union all
select p6 from table6) a
group by p1