105 SQL DROP TABLE

The current webpage explains the SQL DROP TABLE statement. Here’s a concise summary:

1


The SQL DROP TABLE Statement

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

Syntax

DROP TABLE table_name;

Note**:**Ā Be careful before dropping a table. Deleting a table will result in loss of complete information stored in the table!


SQL DROP TABLE Example

The following SQL statement drops the existing table "Shippers":

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

TRUNCATE TABLE table_name;