explain
Get a SQL query's execution plan to identify performance issues without executing it. Optionally run EXPLAIN ANALYZE for actual execution and timing.
Instructions
Show the query execution plan for a SQL query using EXPLAIN. Does not execute the query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to explain | |
| analyze | No | If true, use EXPLAIN ANALYZE to actually run the query and show real timing. Use with caution on production. |