代码:
Delete from Table1
Where(A,B,C)
IN
(Select A,B,C From Table2);
如果有匹配的记录,则应从表1中删除记录。 当我执行上面的代码时,出现类似意外选择和意外From错误的错误
答案 0 :(得分:2)
我认为您正在尝试执行以下操作:
delete from table1 using table2
where
table1.a = table2.a and
table1.b = table2.b and
table1.c = table2.c