[MYSQL] Syntaxe requête

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. 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 
    
    1. Contributeur
      Essaie :

      DELETE * FROM `client` WHERE `client`.`NOM` = 'DUPONT' AND WHERE `client`.`Prénom` = 'Jean';
      1. #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.
        1. Contributeur
          >Bah la syntaxe semble bonne quel est le réel problème?