EN
MySql - update table values using another table rows
5 points
In this short article, we would like to show how to update some table values using source table rows in MySQL.

Quick solution:
xxxxxxxxxx
1
UPDATE updated_table u
2
SET updated_column=(
3
SELECT source_column
4
FROM source_table s
5
WHERE u.some_column=s.some_column
6
);
Note: be sure that
WHERE u.some_column=s.some_column
causes returning one row for the updated column.