去重复 oracle

http://bbs.csdn.net/topics/380258986

select name from score group by name 

select distinct name from score 

连个的效果一样

 

http://zhidao.baidu.com/link?url=sLocMoGf0qcvuCr_onRLAUEoXXgtkFlaxqRGjMSsL26-evQvXggDun9JaeEkktxNNHM7qnAxE97e8c1uVW8Fg_

 

我在where 1=1  后面加了  and  where 1=1 and goup by  多了and 会报错的

区分

having

group by

order by

where 1=1 

distinct 

 

posted @ 2015-11-15 15:49  zshblog  阅读(124)  评论(0编辑  收藏  举报