DELETE FROM plusieurs tables
Bonjour,
Je voudrais savoir si il était possible de faire un DELETE FROM avec plusieurs tables ?
J'essaie de lancer la requête suivante :
Code:
1 2
| DELETE FROM sondage__reponse, sondage__question, sondage__choix
WHERE sondage__reponse.CodeChoix = sondage__choix.CodeChoix AND sondage__choix.CodeSondage = sondage__question.CodeSondage AND sondage__question.CodeSondage = '2' |
Mais j'obtiens l'erreur suivante:
Citation:
#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 sondage__reponse.CodeChoix = sondage__choix.CodeChoix AND sondage__choix.C' at line 1