摘要: JDBC_05事务相关 1.演示jdbc事务自动提交机制 1.1建表并插入数据 drop table if exists t_vip; create table t_vip( id int primary key auto_increment, name varchar(255) ); insert 阅读全文
posted @ 2021-07-28 22:40 TSCCG 阅读(33) 评论(0) 推荐(0) 编辑
摘要: JDBC_04Statement和PreparedStatement 1.对比Statement和PreparedStatement 1.Statement存在sql注入问题,PreparedStatement解决了sql注入问题。 2.PreparedStatement效率比Statement高一 阅读全文
posted @ 2021-07-28 18:26 TSCCG 阅读(72) 评论(0) 推荐(0) 编辑