[SQL] Update ... set a.x=b.machin, a.y=b.truc ...from ... a
Désolé j'ai cherché pas mal de temps et j'ai pas trouvé de réponse, pourtant je pense que cette question a déja été posée :
Comment mette à jour plusieurs colonnes de la table A avec les donnée de la table B sans répéter Xfois le même requete ?
Expl
update matable a
set a.macol=(select b.tacol from tatable b where a.id = b.fkid),
a.macol2=(select b.tacol2 from tatable b where a.id = b.fkid),
a.macol3=(select b.tacol3 from tatable b where a.id = b.fkid)
...
Merci
[RESOLU] Update ... set a.x=b.machin, a.y=b.truc ...fro
Merci beaucoup, ça fonctionne parfaitement !
:ccool: