2022年4月19日

JDBC事务 和 批量处理

摘要: @Testpublic void useTransaction(){ //1.得到连接 Connection connection = null; //2.组织一个sql语句 String sql = "update account set balance = balance - 100 where 阅读全文

posted @ 2022-04-19 18:34 我要当程序源 阅读(105) 评论(0) 推荐(1) 编辑

JDBC预处理

摘要: public class PreparedStatement_ { public static void main(String[] args) throws Exception{ Scanner scanner = new Scanner(System.in); //让用户输入管理员名和密码 Sy 阅读全文

posted @ 2022-04-19 14:44 我要当程序源 阅读(129) 评论(0) 推荐(0) 编辑

导航