Java JDBC savePoint -
reading
It has not been well written, Points are mapped to
thanks
A savingspoint marks a point that can roll back the current transaction. Instead of rolling all its changes back, it can only choose to roll back some of them, for example, suppose:
- Start a transaction,
- Insert 10 rows in a table,
- Set a saving point,
- insert the other 5 rows,
- Save the point Rollback,
- Transaction.
After doing this, the first 10 rows you entered in the table may have been removed by the rollback to the other 5 rows.
Setting a saving point does not save any data to the database. This database change does not appear for any other transaction. A savingspoint is a marker that can roll back the current transaction.
Comments
Post a Comment