ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nunca compares integer
a strings
en MySQL. Si id
es int
, elimine las comillas.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nunca compares integer
a strings
en MySQL. Si id
es int
, elimine las comillas.