[MYSQL] Syntaxe requête

RE4 -  
 RE4 -
Bonjour,

J'aimerais faire un delete de ce genre:

DELETE FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'Jean';


Quel est la bonne syntaxe ? Merci.

7 réponses

arth Messages postés 9374 Date d'inscription   Statut Contributeur Dernière intervention   1 293
 
>Bah la syntaxe semble bonne quel est le réel problème?
0
RE4
 
#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 `client`.`Prénom` = 'Jean' at line 1 


Voilà le problème.
0
arth Messages postés 9374 Date d'inscription   Statut Contributeur Dernière intervention   1 293
 
Essaie :

DELETE * FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'Jean';
0
RE4
 
Merci mais toujours une erreur.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
arth Messages postés 9374 Date d'inscription   Statut Contributeur Dernière intervention   1 293
 
Laquelle cette fois la même?
0
RE4
 
requête SQL:

DELETE * FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'Jean'

MySQL a répondu:Documentation
#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 '* FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'J' at line 1 
0
RE4
 
up
0