KnowledgeBoat Logo

Computer Science

Differentiate between DROP TABLE, DROP DATABASE.

DDL & DML

5 Likes

Answer

DROP TABLEDROP DATABASE
This command is used to delete a specific table from the database along with all its data, indexes, triggers, and constraints.This command is used to delete an entire database including all its tables, views, stored procedures, triggers, and other objects.
The syntax is : DROP TABLE table_name;.The syntax is : DROP DATABASE database_name;.

Answered By

4 Likes


Related Questions