MySQL Forums
Forum List  »  InnoDB

Re: Not locking....
Posted by: Lalit Shakya
Date: October 04, 2008 06:03AM

The row label locking is done in this way


SELECT * FROM tablename WHERE id=vale FOR UPDATE;

Please keep in mind id field must be index please check this may be problem second


http://dev.mysql.com/doc/refman/5.0/en/innodb-next-key-locking.html

Options: ReplyQuote


Subject
Views
Written By
Posted
2987
September 22, 2008 01:34AM
1673
September 28, 2008 08:27PM
1687
September 29, 2008 05:03AM
1648
September 29, 2008 06:53PM
Re: Not locking....
1648
October 04, 2008 06:03AM
1556
September 28, 2008 10:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.