這工作SQL更新不起作用
SELECT * FROM productinfo a
WHERE NOT EXISTS(SELECT NULL
FROM productinfo_temp b
WHERE a.ProductID = b.ProductID)
但是,它想從該結果
UPDATE a SET Deleted = '1' FROM productinfo a
WHERE NOT EXISTS(SELECT NULL
FROM productinfo_temp b
WHERE a.ProductID = b.ProductID)
更新productinfo表,但它沒有工作。 UPDATE有什麼問題? 這是錯誤
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM productinfo a WHERE NOT EXISTS(SELECT NULL FROM productinfo' at line 1