DELETE FROM `table` AS` alias` ... WHERE `alias``column`… dlaczego błąd składni?
Próbowałem tego z MySQL:
<code>DELETE FROM `contact_hostcommands_relation` AS `ContactHostCommand` WHERE (`ContactHostCommand`.`chr_id` = 999999) LIMIT 1 </code>
I dostaję to:
<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>
Uwaga: To zapytanie jest generowane automatycznie, a warunki są oparte na aliasach tabeli.
Dlaczego otrzymuję ten błąd?
Czy istnieje sposób na użycie aliasów tabeli w klauzuli where?
Czy to jest specyficzne dla MySQL?