Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Delete from the product_image table by the img field:
DELETE t1 FROM product_image t1
JOIN (SELECT MIN(id) AS minid, img FROM product_image GROUP BY img) t2
ON t1.id <> t2.minid AND t1.img = t2.img
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question