Using EXPLAIN for Query Optimization

Published July 26, 2025 By Sai Sree Ram Gundepudi

Using EXPLAIN

EXPLAIN SELECT * FROM employees WHERE department_id = 2;

Key columns include: type, possible_keys, key, rows, Extra.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article