Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE STATEMENT AND LOCKS

Status
Not open for further replies.

rbala

Programmer
Apr 29, 2001
2
US
Does DB2 know how to avoid locking a row when we do a qualified update

E.g. Table X has three columns A, B, C
and has a row with values 1,2,3 respectvely
and A is the primary key

Now if I do an UPDATE
E.g.
UPDATE X
set A=1,B=2,C=3
WHERE A=1 AND B<>2 and C<>3

Does this invoke locking the row while the WHERE clause of the UPDATE is being verified.

RB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top