1. Home
  2. Computer Science MCQs
  3. MySQL
  4. Which of the following is used to delete an entire MYSQL…

Added 19 Jan 2024

Which of the following is used to delete an entire MYSQL database?

  1. mysql_drop_database
  2. mysql_drop_entiredb
  3. mysql_drop_db Correct answer
  4. mysql_drop_dbase

Correct answer

C. mysql_drop_db

18 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs