DROP DATABASE statement in SQL

The DROP DATABASE statement is used to drop the existing database.

Syntax:

DROP DATABASE databasename;

DROP DATABASE EXAMPLE

DROP DATABASE test;



Note: Be careful before dropping a database. Deleting a database will result in loss of complete information stored in the database!

Make sure you have admin privilege before dropping any database otherwise you will not able to drop the database. Once a database is dropped, you can check it in the list of databases with the following SQL command: SHOW DATABASES;

Comments

Popular posts from this blog

Hyperparameter tuning for machine learning models.

What is difference between Yield and return Keyword in Python