Re: missing clarity on select for update when using with jdbc
Posted by: Todd Farmer
Date: November 21, 2013 10:22AM

Hello Muralidhar,

The lock you acquire with a SELECT ... FOR UPDATE statement is held at the Connection level. When that Connection is terminated, the lock is relinquished. Each Connection object is a session on the MySQL server; you can issue multiple statements against a single Connection object, and they are executed in the context of the same session on the server.

I hope that helps!

--
Todd Farmer
MySQL @ Oracle
http://www.oracle.com/mysql/

Options: ReplyQuote


Subject
Written By
Posted
Re: missing clarity on select for update when using with jdbc
November 21, 2013 10:22AM


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.