DELETE FROM `table` AS` alias` ... WHERE `alias`.`column` ... warum Syntaxfehler?
Ich habe das mit MySQL versucht:
<code>DELETE FROM `contact_hostcommands_relation` AS `ContactHostCommand` WHERE (`ContactHostCommand`.`chr_id` = 999999) LIMIT 1 </code>
Und ich verstehe:
<code>#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (`ContactHostCommand`.`chr_id` = 999999) LIMIT 1' at line 1 </code>
Hinweis: Diese Abfrage wird automatisch generiert und die Bedingungen basieren auf Tabellenaliasen.
Warum bekomme ich diesen Fehler?
Gibt es eine Möglichkeit, Tabellenaliase in der where-Klausel zu verwenden?
Ist das MySQL-spezifisch?