본문 바로가기 메뉴 바로가기

Decoding Note

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Decoding Note

검색하기 폼
  • 분류 전체보기 (56)
    • mysql (1)
    • Flex (1)
    • Python (1)
    • Git (2)
    • react (2)
    • css (4)
    • Javascript (4)
    • Swift (41)
      • Metal (2)
      • Realm (2)
      • Firebase (1)
      • Testing (1)
      • Clean Code (2)
    • web (0)
  • 방명록

mysql (1)
replace에 대해

mysql의 replace 함수는 insert와 update를 동시에 한 것과 같은 기능이다.테이블에 해당 raw가 없으면 insert를 해당 데이가 있다면 그 raw를 해당하는 데이터로 update 해준다.데이터를 그룹적용할 때, 사용하면 효율적으로 사용할 수 있을 것 같다. REPLACE INTOmgr_alarm(manager_id,hashkey_id,event_id,alarmtype_id)(SELECT#manager_id# AS manager_id,#hashkey_id# AS hashkey_id,ma.event_id,ma.alarmtype_idFROM mgr_alarm maINNER JOIN obj_event_set oes ON oes.hashkey_id = ma.hashkey_id AND oes...

mysql 2015. 7. 23. 11:21
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • UIControl
  • pagingView
  • http live streaming
  • customAlertView
  • NIB
  • Realm
  • AVFoundation
  • m3u8
  • TDD
  • permission error
  • Design Pattern
  • xib
  • HLS
  • Closure
  • Coordinator
  • UIBarButtonItem
  • RECORDING
  • CollectionView
  • IOS
  • carousel
  • AVKit
  • Video
  • AssociatedObject
  • database
  • testing
  • Swift
  • ssh
  • BaseViewController
  • UIButton
  • Cleancode
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바