Question 12 Marks
What is the purpose of rollback()? Write the syntax as well.
Answer
View full question & answer→rollback(). It is used to cancel all the changes made to the database, and it only works with DML Statements, i.e. Insert,
Delete or update.
Eg.db.rollback()