Explain the difference between exclusive lock and update lock

Technology CommunityCategory: DatabasesExplain the difference between exclusive lock and update lock
VietMX Staff asked 3 years ago
  • In case of exclusive lock, no other lock can be acquired on that row or table. Every process has to wait until the process which holds the lock releases it.
  • In case of update lock, while reading the row or a record, you can have any other lock associated with that row or record. In case of updating the record, update lock changes itself to exclusive lock and no other process can obtain a lock on that row until the lock is released.