Re: lock and transaction
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.
Subject
Written By
Posted
Re: lock and transaction
June 29, 2005 07:09AM
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.