suggest_index
Analyze SQL via EXPLAIN PLAN to detect full table scans and return a CREATE INDEX DDL recommendation. Not executed; apply after review.
Instructions
Analyse a SQL statement via EXPLAIN PLAN and, when a table is read by full scan, propose a CREATE INDEX statement. Returns the recommended DDL as text; it is never executed. Apply it manually only after DBA review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to analyse (typically SELECT; DML is also supported). | |
| targetTable | No | Optional table name to focus on when several tables are scanned. |