I have a table on which I have created a number of indexes, based on common queries to that table.
The primary key (also unique) is ProductID. The primary index for the table is therefore just the primary key - ProductID
I also have two indexes for common queries:
ProductID
ClassID
IsCourse
Hidden
ProductID
Status
Hidden
The fields in these indexes are the fields used in "WHERE" clauses in common SQL queries.
Well, phpMyAdmin is telling me (in red letters, no less):
PRIMARY and INDEX keys should not both be set for column 'ProductID'
and
More than one INDEX key was created for column 'ProductID'
But, since I'm using ProductID in these queries it should be in the indexes, right? Or...well if that's wrong I'm not sure what I'm supposed to do.
The manual didn't help me here - or I just never found it.