What does ROLLBACK TO SAVEPOINT sp1 do to the work performed after that savepoint?
Correct answer
A. It undoes that work but leaves the transaction open for more statements
21 views
A. It undoes that work but leaves the transaction open for more statements
21 views
A savepoint marks a position inside a transaction, and ROLLBACK TO restores that position while leaving the transaction active, discarding only the changes made after the mark. The savepoint itself survives and can be rolled back to again. RELEASE SAVEPOINT forgets the mark without undoing anything, which is quite different from committing the transaction.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is A? Ask here and get an explanation.