Description
- LOCK TABLE obtains a table-level lock, waiting if
- necessary for any conflicting locks to be released.
- If NOWAIT is given, LOCK TABLE
- does not wait for acquiring lock, and throws an error instead.
- Once obtained, the lock is held for the remainder of the current transaction.
- (There is no UNLOCK TABLE command; locks are always
- released at transaction end.)
+ LOCK TABLE obtains a table-level lock, waiting
+ if necessary for any conflicting locks to be released. If
+ NOWAIT is specified, LOCK
+ TABLE does not wait to acquire the desired lock: if it
+ cannot be immediately acquired, the transaction is aborted and an
+ error is emitted. Once obtained, the lock is held for the
+ remainder of the current transaction. (There is no UNLOCK
+ TABLE command; locks are always released at transaction
+ end.)
+
+
+ NOWAIT
+
+ Specifies that LOCK TABLE should not wait for
+ any conflicting locks to be released: if the specified lock
+ cannot be immediately acquired without waiting, the transaction
+ is aborted.
+
+
+