ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nikdy neporovnávejte integer na strings v MySQL. Pokud id je int , odstraňte uvozovky.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nikdy neporovnávejte integer na strings v MySQL. Pokud id je int , odstraňte uvozovky.