mysql根据字段分组查询

SQL语句: select usertype usertype,count(usertype) typeNum from ay_user group by usertype

你可能感兴趣的:(MySql)