首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

文章分组统计后的,在的到总行数,为什么有错?解决方法

2012-01-19 
文章分组统计后的,在的到总行数,为什么有错???文章分组统计后的,在的到总行数,为什么有错???selectcount(*

文章分组统计后的,在的到总行数,为什么有错???
文章分组统计后的,在的到总行数,为什么有错???

select   count(*)   from   (select   author,count(*)   from   articles   group   by   author)


[解决办法]
select count(*) from (select author,count(*) from articles group by author) AS a

热点排行