Which of following will cause end of user transaction.
-
Commit
-
Drop
-
Truncate
-
All of above
D
Correct answer
Explanation
All three operations end a user transaction. COMMIT explicitly ends the transaction by saving changes. DROP and TRUNCATE are DDL operations that implicitly commit the current transaction and start a new one in most databases (Oracle, PostgreSQL). Therefore 'All of above' is correct.