摘要: 本文主要讲述,面对多个sql语句【增,删,改】的执行,如何加快执行速度? 传统方法: public class jdbcBat_ { // 同时处理多条数据【原始方法】 @Test public void test1(){ Connection connection = JDBCUtils.getC 阅读全文
posted @ 2023-01-30 22:05 zwGitOne 阅读(141) 评论(0) 推荐(0) 编辑
摘要: public class JDBCUtils { private static Connection connection; static { try { Properties properties = new Properties(); properties.load(new FileReader 阅读全文
posted @ 2023-01-30 21:52 zwGitOne 阅读(21) 评论(0) 推荐(0) 编辑
摘要: /** * 模拟账户:Tom账户加钱+100,marry账户减钱-100 * 开启事务 */ public class jdbcTransaction { public static void main(String[] args) { // 不使用事务,进行账户的增加 Connection con 阅读全文
posted @ 2023-01-30 21:49 zwGitOne 阅读(76) 评论(0) 推荐(0) 编辑