Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql update table from select on another table

UPDATE TableB 
SET TableB.value = (
    SELECT TableA.value 
    FROM TableA
    WHERE TableA.name = TableB.name
);
 
PREVIOUS NEXT
Tagged: #mysql #update #table #select #table
ADD COMMENT
Topic
Name
7+1 =