I have a MySQL database table that contains a column named GROUP.
I am trying to add an index on this column using the following SQL:
alter table MY_TABLE add index (GROUP);
This gives me the error:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP)' at line 1
I have tried qualifying the column as MY_TABLE.GROUP and tried creating the index using the MySQL Workbench UI but both throw the same error.