Alexander Brock: DELETE mit einem subquery

Beitrag lesen

Hallo Forum,

"
Exception: The preceding prohibition does not apply if you are using a subquery for the modified table in the FROM clause. Example:

UPDATE t ... WHERE col = (SELECT (SELECT ... FROM t...) AS _t ...);

Somit verdunkelt sich die Sache wieder ;)

Warum? Da steht doch ganz genau, dass das bei Updates gilt.
Bei Delete gilt das nicht, da gelten andere Regeln.

Gruß
Alexander Brock