SQL Drop DataBase

SQL Drop DataBase Used to remove or delete an existing database from SQL database.Deleting a database will cause loss of all information stored in the database.

Drop DataBase Syntax :

The syntax of the Drop DataBase is −

DROP DATABASE databasename;


Drop DataBase Example :

The Example of the Drop DataBase is −

DROP DATABASE myDB;

After a database is Dropped, you can view it in the list of databases with the following SQL command: SHOW DATABASES;

SHOW DATABASES;
----------------
testDB            
letsfindcourse     
LfcDB              
test   
 




Visit :


Discussion


* You must be logged in to add comment.