I want to add an index to a table by using the ALTER
syntax, but first check if it already exists on the table, and only add the index if it does not exist.
ALTER TABLE tableName ADD INDEX IX_Table_XYZ (column1);
Is there any way to do this?