怎样选出文章数最多的作者?

hgllucky 2006-02-16 02:08:55
怎样选出文章数最多的作者?
表zjwz,字段author代表作者名字
...全文
134 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hy98521 2006-02-16
  • 打赏
  • 举报
回复
select count(id) from table where user='author'
sujinlin 2006-02-16
  • 打赏
  • 举报
回复
SELECT TOP 1 COUNT(author) AS authorNum, author
FROM zjwz
GROUP BY author
ORDER BY COUNT(author) DESC
Amely 2006-02-16
  • 打赏
  • 举报
回复
select top 1 author,count(articleid) as comm from zjwz group by author order by comm desc
tokilcoom 2006-02-16
  • 打赏
  • 举报
回复
mark
xxuu503 2006-02-16
  • 打赏
  • 举报
回复
select top1 author from zjwz group by author order by count(articleid) desc
meizz 2006-02-16
  • 打赏
  • 举报
回复
SQL语句group by + order by
xutao888 2006-02-16
  • 打赏
  • 举报
回复
select author,count(articleid) as comm from zjwz group by author order by comm desc

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧