SQL DROP DATABASE


David Haertzen David Haertzen, Tutorial Author
Check out our
Data Warehousing Tutorial.
Previous | Next

SQL > SQL Administration > SQL DROP DATABASE Statement

What is the SQL DROP DATABASE Statement?

The SQL DROP DATABASE statement is the SQL command that removes an existing database. A database is the outer container for other SQL objects: tables, columns, views, indexes, etc.

Why Use the SQL DROP DATABASE Statement?

Anytime you want to remove an existing database. For example, you may want to eliminate an a database called CUSTOMER_DB_DEV that is no longer required for database development.

How To Use the SQL DROP DATABASE Statement

The SQL DROP DATABASE statement is used as follows.

SQL DROP DATABASE Statement Syntax

 
DROP DATABASE <database_name>
 

SQL DROP DATABASE Statement Example

The following example drops an existing database named CUSTOMER_DB_DEV.

 
DROP DATABASE customer_db_dev
 

Copyright© 1999-2015, First Place Software, Inc.