I have the following query, which works for MySQL:
DELETE `test1`, `test2`, `test3`, `test4` FROM
`test1` LEFT JOIN `test2` ON test2.qid = test1.id
LEFT JOIN test3 ON test3.tid = test2.id
LEFT JOIN test4.qid = test1.id
WHERE test1.id = {0}
But it doesn’t work for MS Access. I’ve tried to add parentheses around the LEFT JOIN, but it gives me syntax error in FROM clause.
So how should this query look in order to work in MS Access?
The Access DELETE requires a star (*):
DELETE * FROM ...In addition, the joins must be nested by using parentheses:
This is specific to Access (Jet) SQL.