Which of the following is used to delete an entire MYSQL database?
Correct answer
C. mysql_drop_db
18 views
C. mysql_drop_db
18 views
mysql_drop_db was the function in PHP's original mysql extension for deleting an entire MySQL database.
That extension was deprecated in PHP 5.5 and removed in PHP 7, so in modern code you run the SQL statement DROP DATABASE db_name through mysqli or PDO instead. Dropping a database permanently removes all its tables and data.
Practise more Database Management Systems MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.