表1 user
id username
1 sam
2 tins
3 stamins表2 comment
id comment author date
1 留言1 sam 2006-1-1
2 留言2 tins 2007-1-1
3 留言3 sam 2008-1-1
4 留言4 sam 2009-1-1请问怎么统计每个用户的留言数?就是查询结果username conmentcount
sam 3
tins 1
stamins 0
id username
1 sam
2 tins
3 stamins表2 comment
id comment author date
1 留言1 sam 2006-1-1
2 留言2 tins 2007-1-1
3 留言3 sam 2008-1-1
4 留言4 sam 2009-1-1请问怎么统计每个用户的留言数?就是查询结果username conmentcount
sam 3
tins 1
stamins 0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货