I am attempting to use the DELETE
clause in MS Access and have an issue when also using the JOIN
clause. I have notice this can be accomplished by using the DISTINCTROW
key word.
For example, the following SQL statement does not allow for deletion:
DELETE Table1.*
FROM Table1 INNER JOIN Table2 ON Table1.Name=Table2.Name;
However, this statement does:
DELETE DISTINCTROW Table1.*
FROM Table1 INNER JOIN Table2 ON Table1.Name=Table2.Name;
- Why does the
DELETE
work when using the DISTINCTROW
key word?
- More specifically, what is happening in the JET engine to require this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…