摘要:
一、jdbc中使用行级锁的步骤 1.1必须将自动提交方式改为手动提交 1.2查询语句后面使用for update(引起事务、启动行级锁) 比如: select * from user where userid in(10001,10002) for update;的意思是启动行级锁,锁住userid 阅读全文
摘要:
一、通过debug模式验证jdbc中mysql管理事务的默认方式(自动提交)示例 package edu.aeon.jdbc; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLExce 阅读全文
该文被密码保护。 阅读全文