Bonjour, je souhaiterai faire une requete update sur un champs d'une table en lui mettant le un bout de champs d'une autre table...
J'ai une table annonce (annonce_id, ref) et une table photo (photo_id, #annonce_id, url)
Je souhaterai pour la correspondance annonce.annonce_id = photo.annonce_id mettre dans le champs url MonSite/[annonce.ref].jpg ...
Un truc du style :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 update photos p inner join annonces a on p.annonce_id = a.annonce_id set url = '[MonSite]/photos/_' + reference + '_1.jpg'
Mais je sèche...
Merci.
Partager