Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

DROP DATABASE

DROP DATABASE

The DROP DATABASE command deletes a pre-existing SQL database.

The following SQL removes a database named “testDB”:

Example

DROP DATABASE testDB; 

 

Caution: Exercise care prior to dropping a database. Deleting a database will lead to the loss of all data stored within it!