有两张表
表一talbe1
id, name 
1,  aa
2,  bb
3,  cc
表二table2
tid, teamId
1,  8
2,  8
1,  33
1,  9
table1的id和table2 的tid 有相同的含义
我想查询对于每一个talbe1的id, 对应的table2中teamId的个数,和table1中的name结果:
id,  teamNum,  name
1,   3,       aa
2,   1,       bb
3,   0,       cc
例如:id为1的teamNum为 select COUNT(*) as teamNum from table2 where tid = 1不知说清楚了没?