ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nigdy nie porównuj integer do strings w MySQL. Jeśli id to int , usuń cudzysłowy.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nigdy nie porównuj integer do strings w MySQL. Jeśli id to int , usuń cudzysłowy.