加入似乎無法鍛鍊什麼即時做錯了問題刪除行MySQL中
SELECT * FROM tbl_imagelabel LEFT OUTER JOIN tbl_image ON tbl_imagelabel.label_id = tbl_image.label_id WHERE tbl_image.label_id is NULL
顯示我想要刪除的確切行。但如果我改變SELECT * FROM要刪除它不工作
DELETE FROM tbl_imagelabel LEFT OUTER JOIN tbl_image ON tbl_imagelabel.label_id = tbl_image.label_id WHERE tbl_image.label_id is NULL
是否有錯誤訊息? – Bobby 2009-12-08 17:22:47
在'DELETE'查詢前運行'EXPLAIN EXTENDED'並在此處粘貼輸出。 – 2009-12-08 17:26:29