What is the purpose of the COMMIT statement in SQL? MCQ with Answer and Explanation

What is the purpose of the COMMIT statement in SQL?
A. To save a point within a transaction
B. To start a new transaction
C. To undo all changes made in a transaction
D. To permanently save all changes made in a transaction
Answer: Option D
Solution (By JKSSB Mock Tests)
COMMIT finalizes a transaction, making all changes permanent in the database.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which of the following describes a precompiled collection of SQL statements stored on the database server that can be executed repeatedly by name?
A. Cursor
B. View
C. Trigger
D. Stored Procedure

Correct Answer: Option D


Explanation:
A Stored Procedure is a precompiled group of SQL statements and optional control-of-flow code stored in the database server, enhancing execution speed and security.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which clause is used in SQL queries to filter rows and retrieve only those records that satisfy a specific condition?
A. WHERE
B. GROUP BY
C. ORDER BY
D. HAVING

Correct Answer: Option A


Explanation:
The WHERE clause is used to filter records based on a specified condition before any grouping takes place.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is a valid SQL data type for storing large binary data?
A. BLOB
B. CHAR
C. TEXT
D. VARCHAR

Correct Answer: Option A


Explanation:
BLOB (Binary Large Object) is used for storing large binary data, such as images or files.

This question belongs to: Computer Database Management System (DBMS)