聚合函数非重复(distinct)查询 计算去重后的数据行数 select count(distinct name) from students; 计算数据行数后再去重 select distinct count(name) from students;