Home / Programming MCQs / MySQL MCQs / Question

J

Jatin Dubey • 3.72K Points
Extraordinary

Q. If you are asked to delete the entire data of a table without disturbing the table definition then in such case which statement you will use?

(A) DELETE
(B) TRUNCATE
(C) DROP
(D) CLEAR
Explanation by: Jatin Dubey
To only remove the data of the table without disturbing the definition of the table we use the TRUNCATE statement, this statement helps us to delete all the data of a table.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.