Mechanic of jdbc update lock

Asked By 140 points N/A Posted on -
qa-featured

 

Hi guys,

I want to know what the mechanic of jdbc update lock is. When do we use it? And please give me detail instruction about how to use it.

Thanks

SHARE
Answered By 0 points N/A #180117

Mechanic of jdbc update lock

qa-featured

Hellow Clinton Sina,

I have  researched about your topics.Now I am giving outlines about jdbc update lock.

When a sql connection is created ,it is generally found to be operated in auto commit mode.From this you will be able to know that a sql statement is treated as a transaction and is automatically committed right after it is executed.

There is an excellent built in function by which you can lock the commit mode In the sql language it is said to destroy the previous condition for which the auto-commit mode was working.

The following code can be implemented for the purpose.

con.setAutoCommit(false);

 

Thanking you

Shifflett Laurel


 

Related Questions