MySQL Forums
Forum List  »  Newbie

Re: lock and transaction
Posted by: Felix Geerinckx
Date: June 29, 2005 07:09AM

gianpaolo fabiani wrote:

> START TRANSACTION;
> lock table customers WRITE;
> UPDATE `customers` SET `Customer
> Name`='MODIFYcustomer' WHERE `idcustomer`=1;
> unlock table;
> ROLLBACK;

Don't use (UN)LOCK TABLES with transactional tables.
See http://dev.mysql.com/doc/mysql/en/lock-tables.html

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
June 29, 2005 04:23AM
Re: lock and transaction
June 29, 2005 07:09AM
June 29, 2005 10:12AM
June 29, 2005 11:53AM
June 29, 2005 11:55AM


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.