SQL DROP DATABASE statement is a DDL SQL statement . DROP DATABASE statement to delete database. Delete the database will delete all the objects in the database (tables, views, procedures, etc.). Users should delete the database administrator privileges. DROP statement can not be rolled back.
SQL DROP DATABASE Syntax
In the above query,
- database_name- name of the database is deleted
SQL DROP DATABASE example
If you want to remove the database MyDatabase, the statement will be
Note: Be careful with this statement! To use DROP DATABASE, DROP privilege on the database needs to have.
Creating a database can read Geeks tutorial of SQL to create the database .