64

JDBC【事务、元数据、改造JDBC工具类】

 6 years ago
source link: https://juejin.im/post/5a893e6cf265da4e93118847
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.事务 一个SESSION所进行的所有更新操作要么一起成功,要么一起失败 举个例子:A向B转账,转账这个流程中如果出现问题,事务可以让数据恢复成原来一样【A账户的钱没变,B账户的钱也没变】。 事例说明: /* * 我们来模拟A向B账号转账的场

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK