SQL DROP Database

SQL DROP Database : SQL DROP statement is used to delete or remove indexes from a table in the database.

If you want to delete or drop an existing database in a SQL schema, you can use DROP DATABASE

Syntax

The basic syntax of DROP DATABASE statement is as follows −

DROP DATABASE DatabaseName;

Always the database name should be unique within the RDBMS.

Let\’s see the syntax of DROP DATABASE:

DROP DATABASE  database_name;

NOTE − Be careful before using this operation because by deleting an existing database would result in loss of complete information stored in the database. Make sure you have the admin privilege before dropping any database.

Scroll to Top