The DROP DATABASE
statement is used to drop an existing SQL database.
DROP DATABASE
databasename;
Note: Be careful before dropping a database. Deleting a database will result in loss of complete information stored in the database!
The following SQL statement drops the existing database "testDB":
DROP DATABASE testDB;
Tip: Make sure you have admin privilege before dropping any database. Once a database is dropped, you can check it in the list of databases with the following SQL command: SHOW DATABASES
;
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!