SQL DROP TABLE
Published Jan 11, 2023
Contribute to Docs
The DROP TABLE command deletes an existing table in a database.
Syntax
DROP TABLE table_name;
The above command removes the table_name table from a database.
Example
DROP TABLE students;
This example removes the students table from a database.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn SQL on Codecademy
- Learn to analyze data with SQL and prepare for technical interviews.
- Includes 9 Courses
- With Certificate
- Beginner Friendly.18 hours
- In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
- Beginner Friendly.5 hours