Which SQL command deletes all rows from a table without deleting the structural schema, cannot be rolled back easily in some systems, and does not fire delete triggers? MCQ with Answer and Explanation

Which SQL command deletes all rows from a table without deleting the structural schema, cannot be rolled back easily in some systems, and does not fire delete triggers?
A. REMOVE
B. DROP
C. DELETE
D. TRUNCATE
Answer: Option D
Solution (By JKSSB Mock Tests)
TRUNCATE is a DDL command that quickly removes all records from a table by deallocating the data pages, bypassing row-level logging and triggers while leaving the table structure intact.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
In DBMS, what is the role of a DBA?
A. Data Backup Assistant
B. Database Administrator who manages the database system
C. Dynamic Binary Analyzer
D. Database Application Builder

Correct Answer: Option B


Explanation:
The Database Administrator (DBA) is responsible for designing, implementing, maintaining, and securing the database.

This question belongs to: Computer Database Management System (DBMS)
Question #2
A key that consists of more than one attribute to uniquely identify rows in a table is called a what?
A. Foreign Key
B. Composite Key
C. Secondary Key
D. Primary Key

Correct Answer: Option B


Explanation:
When a primary key or unique key comprises two or more columns (attributes) combined together, it is known as a Composite Key.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is the purpose of the SQL 'DEFAULT' constraint?
A. To enforce uniqueness
B. To set a foreign key
C. To define a primary key
D. To provide a default value for a column when no value is supplied

Correct Answer: Option D


Explanation:
DEFAULT assigns a default value to a column if an INSERT statement does not specify a value.

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