oracle去重方法

如题所述

select distinct 字段名 from 表名;
或者
select 字段名 from 表名 group by 字段名;
第二种写法,group by 中的字段名需要与select的字段名一致。
温馨提示:答案为网友推荐,仅供参考
相似回答