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  阅读(163)  评论(0)    收藏  举报