Question
What is the purpose of rollback()? Write the syntax as well.

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()

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free