At 18:57 +0530 4/16/04, Sahil Aggarwal wrote:
hi all,

i have select statements in my java code which are followed by updates
in my Innodb table.
the desired behaviour shud have been
check and then update
but because of tomcat accepting connections the above becomes
check check update update
i dont want to set the table locking, as it will make the system slower
how can i set exclusive row locking until the update is finished?

Have you tried using SELECT ... FOR UPDATE?



-- Paul DuBois, MySQL Documentation Team Madison, Wisconsin, USA MySQL AB, www.mysql.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to