SQL DROP TABLE Statement

The SQL DROP TABLE Statement

The DROP TABLE statement is used to drop an existing table in a database.

Syntax

SQL
DROP TABLE table_name; 

SQL DROP TABLE Example

The following SQL statement drops the existing table “Shippers”:

SQL
DROP TABLE Shippers;

SQL TRUNCATE TABLE

The TRUNCATE TABLE statement is used to delete the data inside a table, but not the table itself.

Syntax

SQL
TRUNCATE TABLE table_name;