Loading, please wait...

Delete a Database

How To Delete A Database in SQL


Introduction:
In this article, you will learn, how to delete a database in SQL.
The DROP DATABASE statement is used to drop/ delete an existing database in SQL schema.

 

Syntax

The main syntax of DROP DATABASE statement is as follows:

drop database DatabaseName;

 

Example:

Step 1: We write our query and then execute this -

drop database demo;

 

 

 

 

 

Summary:
Thus, we learned, how to delete a database in SQL.