In SQL server we can update set join like this,
Update table1 set column = n.newvalue from table1 join (values('value1', 'value2')) N (oldvalue, newvalue) on table1.column = oldvalue
I try to write something like this is mySQL, different from SQL server mySQL use something like this
update table join table2 on table1.column = table2.column set table1.column = table2.column
So I tried to write it like this
update table1 join (values('value1','value2')) N (oldvalue, newvalue) on table.column = n.oldvalue
set table.column = n.newcolumn
but I always get the error check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUES, so is there something I can use other than values, or is there another method of writing this query