Introduction
EXPLAIN helps you see how the database will run your query. It shows the steps and order the database uses to get your data.
You want to make your query faster by understanding how it runs.
You need to find out why a query is slow.
You want to check if the database uses indexes for your query.
You are learning how databases process queries step-by-step.