1
爲什麼這個有語法錯誤INNER JOIN作品SELECT但不是DELETE
DELETE FROM `print_mailing_request` pmr
INNER JOIN `person` p
ON p.id = pmr.person AND p.email LIKE '%@TEST.COM'
WHERE
pmr.sent_to_fulfiller != 'y'
當這正常工作沒有錯誤?
SELECT * FROM `print_mailing_request` pmr
INNER JOIN `person` p
ON p.id = pmr.person AND p.email LIKE '%@TEST.COM'
WHERE
pmr.sent_to_fulfiller != 'y'
您是否試圖從兩個表中刪除數據? – Jhecht
因爲一個是SQL Server 2008,而我的是mySQL(標記但沒有明確說明),我不確定該帖子是否與我的相關,而且我試圖實現該解決方案... – jerrygarciuh