在我的other question我问如何从多个表中选择一个列与内部联接。我的新问题是:如何删除这些结果?如果要修改,你可以通过创建执行它相同的查询从manual删除多个连接
Currently, you cannot delete from a table and select from the same table in a subquery.
:
SELECT
product_image.image
FROM product
INNER JOIN ixml_prd_map ON product.sku = ixml_prd_map.id_oc_prd
INNER JOIN product_image ON product_image.product_id = product.product_id
WHERE product.model = "xy-type"
由于某种原因,我收到错误如上所示:#1093 - 您无法在FROM子句 – Adrian
中指定目标表'product_image'进行更新我相信它是因为在mysql中,您无法更新表并从子查询中的同一个表中选择'当前不能删除从一个表中选择并从子查询中的同一个表中选择。 ':从手册https://dev.mysql.com/doc/refman/5.0/en/delete.html –
嗯。我会手动删除,但有超过30000结果。 :( – Adrian