DELETE FROM programSchedule
LEFT JOIN program ON programSchedule.pid = program.id
WHERE program.channel_id = 10
我得到這個錯誤:錯誤查詢:DELETE和LEFT JOIN
#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 'LEFT JOIN program ON programSchedule.pid = program.id' at line 1
爲什麼?
注意:如果你想從** **兩表刪除,你可以先創建一個臨時表做到這一點。請張貼您的表格定義。 – 2011-02-18 22:27:12