- The previous state of the data can be recovered.
- The current user can review the results of the DML operations by using the SELECT statement.
- Other users cannot view the results of the DML statements by the current user.
- The affected rows are locked; other users cannotchange the data in the affected rows.
- Data changes are made permanent in the database.
- The previous state of the data is permanently lost.
- All users can view the results.
- Locks on the affected rows are released; those rows are available for other users to
manipulate. - All savepoints are erased.
Make the changes :
- BEGIN
- DELETE FROM emp WHERE empno = 7090;
- INSERT INTO dept VALUES (290, 'Corporate Tax', NULL);
- COMMIT;
Discard all pending changes by using the ROLLBACK statement :
- Data changes are undone.
- Previous state of the data is restored.
- Locks on the affected rows are released.
- BEGIN;
- DELETE FROM copy_emp;
- DELETE 20
- ROLLBACK ;
- Rollback
No comments:
Post a Comment