preparedStatement.executeUpdate();
// int i = 2 / 0;
preparedStatement = connection.prepareStatement(sql2);
preparedStatement.executeUpdate();
connection.commit();
java进行mysql操作的时候,事务没有提交之前遇到错误的时候还需要回滚吗?
繁花如伊
宝慕林4294392
一只甜甜圈
随时随地看视频慕课网APP
相关分类