DROP DATABASE
To drop an existing SQL database use command-
DROP DATABASE database_name;
HOW TO DROP DATABASE IN T-SQL
DROP DATABASE [IF EXISTS] database_name(s);
Example-
DROP DATABASE [ IF EXISTS] database_name1 , database_name2, database_nameN;
Note-
We are required to keep a database backup if we need to recover it in the future.
We are unable to delete the currently active database.
Saraswat World Changed status to publish June 14, 2023
Leave a Reply