1. Home
  2. Computer Science MCQs
  3. MySQL
  4. What does prefixing a SELECT query with EXPLAIN do in MySQL?

Added 2 Nov 2026

What does prefixing a SELECT query with EXPLAIN do in MySQL?

  1. Translates the query into English
  2. Runs the query twice for accuracy
  3. Adds comments to the result set
  4. Shows the query execution plan Correct answer

Correct answer

D. Shows the query execution plan

20 views

MCQSEXAM

Explanation

EXPLAIN reveals how MySQL will run the query: which indexes it uses, the join order and estimated rows scanned. It is the first step in diagnosing slow queries.

Reference

Asked in: NTS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? 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