1
我使用删除一些记录,语法错误而删除加入
delete FROM product_to_category c inner JOIN product_description d
ON c.product_id = d.product_id
WHERE c.category_id IN (3, 6)
GROUP BY c.product_id
HAVING COUNT(DISTINCT c.category_id) = 2
ORDER BY d.name asc
但它返回语法错误附近使用c inner JOIN product_description............
谁能告诉我怎么构建我的查询正确
任何建议,将不胜感激
尝试'删除product_to_category FROM product_to_category INNER JOIN product_description d' –