Bonjour, Le 11/09/2014 14:45, andre_debian@numericable.fr a écrit :
PHP : UPDATE table SET champ1='$champ2' WHERE champ2!='' Est-il possible de réaliser cet update uniquement avec SQL ? car je ne vois pas comment récupérer la variable $champ2 contenu par le champ 'champ2' en SQL.
Pas sur de tout comprendre, mais un truc dans le genre ? :UPDATE table SET champ1=(SELECT .... WHERE ....) WHERE (SELECT .... WHERE ....)!=''
?