数据库MySQL查询去重 云博小周宇2024年5月5日2023年8月25日1 Min Read 方法一: distinct select count(distinct CName) from Course 方法二: 使用分组 group by select count(1) from Course group by CName