I currently have 2 tables.
table 1: old
id mod1 mod2 exp
----------------
1 280 20 1
table 2: new
id mod1 mod2 exp
----------------
1 0 0 0
And i want to fill the second table with all mod1 mod2 exp where die id is the same like in 1.
In table 1 i have some more ids as in table 2.
query tried so far.
UPDATE table1
INNER JOIN table2 ON table1.entry = table2.entry
SET table1.mod1 = table2.mod1;