The general syntax of what you want is: UPDATE table1 AS t1 JOIN table2 AS t2 ON SET ...
stackoverflow.com