Contents

Views 3544 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

MySQL에서는 Sub Query 가능한 버전이어야 함.


mysql> delete from tab where 번호 not in
    -> ( select min(번호) from tab group by 이름, 나이, 전화번호, 주소필드 );


위의 쿼리를 설명하자면..

번호를 제외한 나머지 컬럼들이 동일할때 번호에 대한 Min값을 구해서 Min이 아닌 번호를 가진 레코드들을 모두 삭제해 줌으로써 동일 정보에 대한 레코드를 제거하는 로직임.



?

  1. [mysql] 접속과 테이블 생성 간단한 설명..

    Date2003.04.23 CategoryDatabase Byhooni Views18732
    Read More
  2. [mysql] 중복데이터 삭제하는 초간단 쿼리

    Date2017.11.22 CategoryDatabase Byhooni Views3544
    Read More
  3. [mysql] 쿼리 로그 저장 매뉴얼

    Date2013.04.23 CategoryDatabase Byhooni Views15362
    Read More
  4. [mysql] 쿼리 실행시 ERROR 1366 (HY000) : incorrect string value : for column

    Date2017.03.30 CategoryDatabase Byhooni Views8916
    Read More
  5. [network] tcp/ip 설명 html파일 9장(ppt 포함)

    Date2013.04.23 CategoryPPT Byhooni Views11678
    Read More
  6. [NFC] 단말기와 서버 통신 내용

    Date2013.11.12 CategoryEtc Byhooni Views11230
    Read More
  7. [node.js] nodejs 기본 설치

    Date2013.04.23 CategoryDevelop Byhooni Views26320
    Read More
  8. [node.js] 지금 하고 있는거..

    Date2013.04.23 CategoryDevelop Byhooni Views27023
    Read More
  9. [opengl] 컴퓨터 그래픽스 강의 자료(수업자료)

    Date2003.04.23 CategoryDevelop Byhooni Views20516
    Read More
  10. [oracle] Oracle 사용자 추가 절차

    Date2019.11.22 CategoryDatabase Byhooni Views736
    Read More
  11. [oracle] SQL문 실행 방법 3가지

    Date2013.12.19 CategoryDatabase Byhooni Views12187
    Read More
  12. [owasp] 10대 웹어플리케이션 보안 취약

    Date2013.04.23 CategorySystem/OS Byhooni Views15989
    Read More
Board Pagination Prev 1 ... 72 73 74 75 76 77 78 79 80 81 ... 98 Next
/ 98