In SQL, ROLLBACK is used to _________.

2017

In SQL, ROLLBACK is used to _________.

  1. A.

    Undo all the previous changes

  2. B.

    Cut changes

  3. C.

    Paste changes

  4. D.

    End changes

Attempted by 47 students.

Show answer & explanation

Correct answer: A

The correct option is A. In SQL, the ROLLBACK command is a Transaction Control Language (TCL) command used to undo uncommitted transactions. It reverts the database to its last committed state or a specific savepoint, completely erasing any pending modifications made during the current session.

Explore the full course: Btsc Lab Assistant