Transactions in SQL In SQL, a transaction begins implicitly SQL에서 Transaction은 DML(Data Manipulate Language) 문장이 나오면 암시적으로 시작된다.
21APR 2026
Transaction Isolation in SQL
Transactions in SQL In SQL, a transaction begins implicitly SQL에서 Transaction은 DML(Data Manipulate Language) 문장이 나오면 암시적으로 시작된다.
Insert and Delete Operations A delete operation may be performed only if the transaction has an X-mode lock on the tuple A transaction that inserts a new tuple is given an X-mode lock on the tuple Insertions and deletions can lead to the phantom phenomenon Delete와 Insert Operation은 X-mode lock을 획득해야...
Deadlock Example T1: write(X) T2: write(Y) write(Y) write(X) Lock 기반 동시성 제어에서 Transaction은 데이터를 읽거나 쓰기 전에 반드시 Lock을 획득해야 한다.
Multiple-Granularity Locking Multiple Granularity Locking은 lock을 걸 수 있는 데이터 단위(granularity)를 다양하게 허용한다.
Lock-Based Protocols Locking Protocol은 Transaction의 동시성 제어를 위해 사용된다. Concurrent execution을 수행하면서도 Isolation과 Consistency를 충족하는 schedule을 생성하도록 한다.