프로그램 사용/oracle
sql distinct
구차니
2014. 5. 29. 23:01
distinct 키워드는 결과로 뽑아낼 목록을
집합으로 만들어서 중복을 제거하고 말그대로 '분류'를 뽑아낸다.
예를들어
을 distinct로 돌리면
팝, 클래식 두개만 나오게 된다.
[링크 : http://www.w3schools.com/sql/sql_distinct.asp]
[링크 : http://technet.microsoft.com/ko-kr/library/ms187831(v=sql.105).aspx]
집합으로 만들어서 중복을 제거하고 말그대로 '분류'를 뽑아낸다.
예를들어
장르 |
팝 |
팝 |
클래식 |
클래식 |
을 distinct로 돌리면
팝, 클래식 두개만 나오게 된다.
[링크 : http://www.w3schools.com/sql/sql_distinct.asp]
[링크 : http://technet.microsoft.com/ko-kr/library/ms187831(v=sql.105).aspx]