Examveda

What is known as the set of SQL statements that either executes successfully or none of them have an effect?

A. joins

B. transactions

C. filters

D. deletions

Answer: Option B

Solution (By Examveda Team)

Imagine you're making a cake. You need to follow all the steps correctly – mix the ingredients, bake it, and frost it. If even one step goes wrong, the whole cake is ruined.

In the world of databases, transactions are similar to making a cake. They are a set of SQL statements that are treated as a single unit.

If all the statements in a transaction are successful, they are all applied to the database. But if even one statement fails, the whole transaction is cancelled, and none of the changes are saved.

This ensures that the data in your database remains consistent and accurate.

So the answer is Option B: transactions

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous