Computer Science

Differentiate between DROP TABLE, DROP clause of ALTER TABLE.

DDL & DML

7 Likes

Answer

DROP TABLEDROP clause of ALTER TABLE
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 remove a specific component of a table, such as columns, constraints, or indexes.
The syntax is : DROP TABLE table_name;The syntax is : ALTER TABLE table_name DROP COLUMN column_name;

Answered By

4 Likes


Related Questions