Update set ?

anes_dz Messages postés 4 Statut Membre -  
 Utilisateur anonyme -
slt ja'ai fait un update a la table produit pour changer tous les prix
en multuplier x 100
UPDATE `produit` SET `id_pro`=[`id_pro*100]
mais il reste afiche r"""#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 '[`id_pro`*100]' at line 1 """

1 réponse

  1. Utilisateur anonyme
     
    Bonsoir

    Il ne faut pas de [ ] dans les requêtes en mySQL :
    UPDATE produit SET id_pro=id_pro*100
    0