distinct

distinct关键字用在整个记录行上。

 

select distinct a,b from
(
select  'a' a, 'b' b from dual
union all
select  'a' a, 'b' b from dual
) t

 

posted @ 2016-09-22 09:45  letmedown  阅读(153)  评论(0编辑  收藏  举报