반응형
세션 1
start transaction;
select * from Account where AccountId = 1 for update;세션 2
select * from Account where AccountId = 1 for update;세션 1이 실행되고 세션 2가 실행된다면 어찌 될까?
정답은 멈추거나 타임아웃
세션 1
start transaction;
select * from Account where AccountId = 1;세션 2
select * from Account where AccountId = 1;세션 1이 실행되고 세션 2가 실행된다면 어찌 될까?
정답은 Level에 따라 값 잘 가져옴
'프로그래밍' 카테고리의 다른 글
| WSL 브릿지 모드 (0) | 2022.10.20 |
|---|---|
| Perforce Install in Ubuntu (0) | 2022.10.20 |
| 게임 전투 데이터 AI 치터 판별 팁 (0) | 2022.10.17 |
| Detect anomalies in product sales with ML.NET (0) | 2022.10.14 |
| jetbrains fleet (0) | 2022.10.13 |