日期:2014-05-16 浏览次数:20950 次
Select name,count(id) as num from table1 group by name union all Select 'sum',count(id) as num from table1
------解决方案--------------------
Select name,count(id) as num from table1 group by name
union all
Select 'sum',count(id) as num from table1