查询结果如下:
也就是查询相同name的数量,SQL语句应该怎么写呢?
select name,count(id) from 表名 group by name
select count(name) from 表名