ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Jämför aldrig integer till strings i MySQL. Om id är int , ta bort citattecken.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Jämför aldrig integer till strings i MySQL. Om id är int , ta bort citattecken.