Course Resources

Search

Search IconIcon to open search

Last updated Nov 17, 2024

# DROP Tables

# DROP Tables

The DROP command in SQL is used to remove objects from the database. It’s a powerful command that can permanently delete tables, databases, views, or indexes. For the time being, we’re just interested in using it to remove tables.

1
DROP TABLE tableName; -- Where tableName is the name of the table you want to drop

The DROP command is typically used during database cleanup, restructuring, or when you need to remove test tables or obsolete database objects. It’s part of the standard housekeeping tasks a database engineer or administrator might perform.

A few important things to keep in mind when using DROP:

# Lessons