mysql update table from select on another table
snippet in sql

mysql update table from select on another table

user5294

UPDATE TableB 
SET TableB.value = (
    SELECT TableA.value 
    FROM TableA
    WHERE TableA.name = TableB.name
);