KnowledgeBoat Logo

Computer Science

Which command is used for removing a table and all its data from the database :

  1. Create table command
  2. Drop table command
  3. Alter table command
  4. All of these

DDL & DML

3 Likes

Answer

Drop table command

Reason — The DROP TABLE command is used to delete a table and all its data from the database. Once this command is given, the table name is no longer recognized and no more commands can be given on the object.

Answered By

3 Likes


Related Questions