없는 것만

  • 홈
  • 방명록

중복데이터삭제 1

mariadb 중복 데이터 1건만 남기고 삭제

작업 전 백업 및 확인 필수  1. 고유키 사용중복 데이터 조회select title, start_date, end_date, count(*) from test_table group by title, start_date, end_datehaving count(*) > 1;delete a from test_table a, test_table b where a.title = b.title and a.start_date = b.start_date and a.end_date = b.end_date and a.id b.id; -- 최초 데이터 남기기 2. row_number로 처리partition by -> 그룹order by -> 정렬delete a from test_table a, (selec..

DataBase 2023.05.06
이전
1
다음
더보기
프로필사진

없는 것만

과거의 나야 고맙다

  • Info (79)
    • Lang (29)
      • Delphi (6)
      • Python (1)
      • Java (18)
      • Javascript (4)
    • DataBase (3)
    • Server (1)
    • Spring(Boot) (1)
    • Algorithm (9)
      • Codility (6)
      • HackerRank (3)
    • Tools (9)
    • ETC (12)
      • IT (5)
      • 잡다 (7)
    • MY (15)

Tag

Codility, 이클립스, SpringBoot, hackerrank, 카톡, STS, 갤럭시워치7, 갤럭시워치, thread, java windows service, TortoiseSVN, PASCAL, SimpleTrigger, 중복데이터삭제, LoaclDateTime, Java, DateTimeFormatterBuilder, mariaDB, Delphi, VS Code,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바