Quick Answer
Table-level locking: the entire table is locked for one operation. Simple but allows no concurrency on the same table (MyISAM). Row-level locking: only the specific rows being accessed are locked. Other rows (and thus other transactions) are unaffected (InnoDB). Row-level locking enables much higher concurrency on write-heavy workloads. InnoDB uses row-level locking with next-key locks for range queries.
Answer
Row-level locking locks only specific rows, improving concurrency. Table-level locking locks the entire table and blocks other write operations.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.