AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
SQL DROP DATABASE |
|
SQL > Data Definition Language (DDL) >
Drop Database Statement
Sometimes we may decide that we need to delete of an entire database in the RDBMS. In fact, if we cannot do so, we would be faced with a maintenance nightmare. Fortunately, SQL allows us to do it, as we can use the DROP DATABASE command. The SQL DROP DATABASE command permanently removes an entire database and all objects within it — use with caution, as this action is irreversible without a backup.
SyntaxThe syntax for DROP DATABASE is,ExampleTo drop the HOLIDAYS database that we created in the CREATE DATABASE section, we type, Please note that any table that is still in the database will also disappear once the database is dropped. Frequently Asked QuestionsQ: What happens when you DROP a database in SQL? Q: Can you recover a dropped database? Q: Do you need special permissions to DROP a database? Q: What is the difference between DROP DATABASE and DROP TABLE? |
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.