📜  您无法在 from 子句 delete 中指定要更新的目标表 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:22.541000             🧑  作者: Mango

代码示例1
DELETE FROM recent_edits 
WHERE trackid NOT IN 
     (select * from (SELECT DISTINCT history.trackid 
     FROM history JOIN recent_edits ON history.trackid=recent_edits.trackid 
     GROUP BY recent_edits.trackid) as t);