7.14 REPLACE

    REPLACE [LOW_PRIORITY | DELAYED]
        [INTO] Nom_table [(Nom_col,...)]
        VALUES (expression,...)
ou  REPLACE [LOW_PRIORITY | DELAYED]
        [INTO] Nom_table [(Nom_col,...)]
        SELECT ...
ou  REPLACE [LOW_PRIORITY | DELAYED]
        [INTO] Nom_table
        SET Nom_col=expression, Nom_col=expression,...

REPLACE fonctionne exactement comme INSERT, mais si une ligne d'une table a une colonne qui porte l'attribut unique , REPLACE pourra remplacer cette ligne par une nouvelle ligne, tout en gardant la même valeur dans la colonne de type unique. Pour plus de détails, voir INSERT.