事务的三种行为 开启事务:connection.setAutoCommit(false) 提交事务:connection.commit() 回滚事务:connection.rollback() 不同场景中 同一事务 同一数据库连接【connection必须为同一连接对象】,进行不同的操作