mysql根据字段分组查询总数,并查询某字段去重后的数量

SELECT help_type, count(*) help_count, count( DISTINCT (enterprise_name)) enterprise_count FROM enterprise_help GROUP BY help_type
相关文章
相关标签/搜索