개구리 탈출하기

  • 홈
  • 태그
  • 방명록

MySQL 2

[MySQL] Update Data in Batches

How to update data in batches IN : 특정 값 여러개를 선택하기 위해서 사용되는 연산자이기 때문에, updated result가 하나로밖에 안되는 한계점이 있다. Update users Set status=1 Where account IN ('xx1', 'xx2') : 만약 여기서 1이 아니고 몇개는 1, 다른 몇개는 2 로 바꾸고 싶을 때 IN을 사용해서 하나의 statement 로는 불가능하고, 여러개의 SQL statement로만 가능하다. For + UPDATE : for loop + update statement intuitive, 거의 대부분의 상황에 적용 가능하며, 실수가 잘 일어나지 않는다. 하지만 단점으로는 performance가 별로다. INSERT INTO ...

Backend with Golang 2023.09.19

MySQL - Transaction

Transaction - sequential group of statements, queries, or operations such as select, insert, update or delete to perform as a one signle work unit that can be committed or rolled back. - database 와 application 사이의 데이터 거래에 있어서 안전성을 높이기 위한 방법. 만약에 transaction 이 여러개의 modifications을 만든다면 두가지의 결과가 나타날 수 있다. transaction이 commit 되었을 때, 모든 modification이 성공하거나 transaction이 rollback 되었을 때, 모든 modification..

Backend with Golang 2023.05.09
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (42)
    • Collaborative Editing (7)
    • Backend with Golang (28)
    • Frontend (React) (4)
    • React Native with Typescrip.. (3)

Tag

indexdb, MySQL, WebRTC, imagePicker, Collaborative editing, go, Image Upload, solidjs, concurrency, managing state, WebSocket Server, CRDT, tldraw, http server, multiplayer drawing app, YJS, IOS, reactnative, fanoutfanin, waitgroup,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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.

티스토리툴바