How To Delete/Drop SQL DB Using Query

In this article, we will learn how to delete/drop a Database using SQL query.

To drop an existing SQL database, the DROP DATABASE statement is used.

Syntax

DROP DATABASE DatabaseName;

Example

The subsequent statement would delete the existing database named “TheCodeHubs”.

DROP DATABASE TheCodeHubs;

 

Also, check How To Create SQL DB Using Query

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories