Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> UPDATE statements and locks
Hi all,
Can someone tell me exactly how locking is implemented in Oracle when an UPDATE statement is executed.
eg. UPDATE table
SET fields
WHERE condition;
The way I understand it is that only the rows that satisfy the WHERE clause are locked.
So, if the WHERE clause takes a long time to evaluate ie. a complex join of the form _WHERE EXISTS(SELECT ...)_, how does it know in advance which rows to lock. Or does it lock the whole table until the "update set" is realised?
Thanks in advance for any help.
Paul. Received on Thu Feb 13 2003 - 11:08:00 CST
![]() |
![]() |