Home / SQL Language / Delete Database

Drop Database in SQL

The SQL statement DROP DATABASE is used to drop an existing database in the SQL schema.

Syntax

The basic syntax of the DROP DATABASE statement is as follows:

DROP DATABASE database_name; 

The database name must be unique within the RDBMS.

Example

If you want to delete an existing database, the DROP DATABASE statement will be as shown below:

DROP DATABASE Student;

Note – Be careful before using this operation because deleting an existing database will result in loss of information stored in the database.

Did you find this article helpful?

Support the author so they can write more quality articles!

Tư vấn lộ trình CNTT 🤖