Single Choice Easy

QWhich DML statement is used to delete all rows from a table in MySQL?

ID: #15489 DML - Data Manipulation Language 129 views
Question Info
#15489Q ID
EasyDifficulty
DML - Data Manipulation LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A DELETE TABLE ✔ ✖
  • B DROP TABLE ✔ ✖
  • C TRUNCATE TABLE ✔ ✖
  • D REMOVE TABLE ✔ ✖
Correct Answer

Explanation

The TRUNCATE TABLE statement in MySQL is used to delete all rows from a table. It removes all data, but the table structure remains intact.

Share This Question

Challenge a friend or share with your study group.