ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Không bao giờ so sánh integer thành strings trong MySQL. Nếu id là int , xóa dấu ngoặc kép.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Không bao giờ so sánh integer thành strings trong MySQL. Nếu id là int , xóa dấu ngoặc kép.