mysql的update select语法

mysql的update select语法与oracle有所不同:
update A inner join(select id,name from B) c on A.id = c.id set A.name = c.name;

你可能感兴趣的:(mysql)