我正在尝试运行涉及某些连接的删除查询。我研究并看到DISTINCTROW能够被使用,所以我尝试了这段代码:
DELETE DISTINCTROW Table2.*, Table2.[Field1], Table2_1.[Field1],
Table2.Field2
FROM Table2 AS Table2_1
INNER JOIN (Table2
INNER JOIN [Table3]
ON Table2.Field3 = [Table3].Current)
ON (Table2_1.Field3 = [Table3].Future)
AND (Table2_1.Contract_ID = Table2.Contract_ID)
WHERE (((Table2.[Field1])="R") AND ((Table2_1.[Field1])="R") AND
((Table2.Field2)=[Table2_1].[Field2]));
但我收到错误cannot delete from specified tables
。它之前没有加入合同ID,但现在我卡住了。
任何人都可以提供任何见解吗?
谢谢!