mysql根據字段分組查詢總數,並查詢某字段去重後的數量

SELECT help_type, count(*) help_count, count( DISTINCT (enterprise_name)) enterprise_count FROM enterprise_help GROUP BY help_type
相關文章
相關標籤/搜索