[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.
Configuration: Windows Vista
Firefox 2.0.0.14

7 réponses

  1. arth Messages postés 84 Date d'inscription   Statut Contributeur Dernière intervention   1 296
     
    >Bah la syntaxe semble bonne quel est le réel problème?
    0
  2. 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
  3. arth Messages postés 84 Date d'inscription   Statut Contributeur Dernière intervention   1 296
     
    Essaie :

    DELETE * FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'Jean';
    0
  4. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  5. arth Messages postés 84 Date d'inscription   Statut Contributeur Dernière intervention   1 296
     
    Laquelle cette fois la même?
    0
  6. 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