ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Никога не сравнявайте integer към strings в MySQL. Ако id е int , премахнете кавичките.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Никога не сравнявайте integer към strings в MySQL. Ако id е int , премахнете кавичките.