EXPLAIN
The EXPLAIN
statement returns the execution plan for a given statement, without executing it. You can use this statement to debug long-running queries and learn how to optimize them.
Syntax Summary
This code block is a quick reference for the EXPLAIN
statement.
See some practical examples.
EXPLAIN statement