Loading topic
ROLLBACK discards every change your session has made in the current transaction and ends that transaction. This chapter covers what it undoes, what it leaves alone, and how it behaves when a statement fails partway through.5 min readCOMMIT and ROLLBACK as explicit commands. Oracle also ends transactions on its own in some situations. Some of these commit your work, and others discard it. This chapter assumes you know how a transaction begins and what explicit COMMIT and ROLLBACK do. It also assumes the `ac5 min readINSERT, UPDATE, and DELETE statements and know what COMMIT and ROLLBACK do. It also assumes you have the accounts table from the start of the tutorial, with Alice at 1000 and Bob at 200, committed. PL/SQL knowledge is needed only for the later examples.5 min readCOMMIT and a full ROLLBACK end a transaction, and that you have the accounts table from the earlier chapters. The PL/SQL section also assumes you can read a basic anonymous block.4 min readaccounts table from earlier chapters.6 min readCOMMIT, ROLLBACK, and savepoints from earlier chapters. It also assumes you can open two SQL sessions at once, for example two SQL Developer worksheets or two SQLcl windows. The examples use the accounts table from the start of the tutorial.6 min readBEGIN, EXCEPTION, END) and the SQL transaction statements from earlier chapters: COMMIT, ROLLBACK, and SAVEPOINT. It uses the accounts table from the start of the tutorial.6 min read