Suggest a MySQL index
mysql_index_suggestionsGenerate ALTER TABLE ADD INDEX SQL for a MySQL table column, plus a composite variant and EXPLAIN guidance, to fix missing-index or full table scan findings.
Instructions
Generates the exact ALTER TABLE ADD INDEX SQL for a MySQL table column, including a composite variant and EXPLAIN guidance to verify the index is used. Call this when the analyzer flags a missing MySQL index or full table scan finding. Does not verify whether the index already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | MySQL table name | |
| column | Yes | Column name to index |