The purpose of a DML lock (data lock) is to guarantee the integrity of data being
accessed concurrently by multiple users. DML locks prevent destructive interference
of simultaneous conflicting DML or DDL operations. DML statements automatically
acquire both table-level locks and row-level locks.
DML锁
1. DML锁的作用是保证多用户并发访问的数据一致性
2. DML能自动的获得表级锁和行级锁