怎样对union all结果统计??
(表1) union all (表二)
怎么对得到的结果统计,count() 怎么使用?
------解决方案--------------------select count(*) from (select .... union all select ...) t
------解决方案--------------------Select Count(*) From
(
Select * From 表1
Union All
Select * From 表二) A
------解决方案--------------------select count(*) from (select * from 表1 union all select * from 表2) t