What are the methods of deleting database by MySQL
This article will explain in detail the methods of deleting the database by MySQL. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The command to delete the database is: "DROP DATABASE database name;"; for example, "drop database student;" is to delete the database named student. The "DROP DATABASE" statement can be used to delete the database.
Use the drop command to delete the database
The drop database statement can be used to delete a database.
Drop database command format:
Drop database
For example, delete a database named student:
Mysql > drop database student
Expand knowledge
Use the PHP script to delete the database
PHP uses the mysqli_query function to create or delete an MySQL database.
This function takes two arguments and returns TRUE on successful execution, or FALSE otherwise.
Grammar
Mysqli_query (connection,query,resultmode)
Example: delete a database using the mysqli_query () function
About MySQL delete database methods which share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.