What does ROLLBACK do ?

ROLLBACK  retracts  any of the changes resulting from the SQL statements in the transaction.

Showing Answers 1 - 3 of 3 Answers

ROLLBACK:  This is just like UNDO in MSOFFICE but can not  REDO, means what ever changes You made after any commit/rollback or A DDL command they will not be saved into database . when rollback is issued your database goes to the stage when you issued commit/rollback or a DDL command.

example

update emp set sal = 500 + sal;

inser into emp values(.......);

delete from employees where employee_id = 102

rollback;

this rollback will not save changes,  you requested by above dml commands.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions