Trying to sort out the correct syntax for this UPDATE
:
UPDATE `foo`
SET (`x`, `y`, `z`) = (SELECT `x`, `y`, `z`
FROM `bar`
WHERE `id` = 'baz');
In the actual query, there are 165 columns so I very much do not want to have to do x = x
for each column.
The columns are not a perfect match so SELECT *
is not an option.