SELECT DISTINCT salary FROM salaries ORDER BY salary DESC;

使用distinct 列名,注意在使用的时候去重的列要单独查询,不要和其他队列一起查询。
select distinct 字段名 from 表名;