mysql-不能先select出同一表中的某些值,再update这个表(在同一语句中)

mysql-不能先select出同一表中的某些值,再update这个表(在同一语句中)

 

https://www.cnblogs.com/duanxz/p/5099030.html

mysql根据关联表对自身更新

update A inner join(select id,name from B) c on A.id = c.id set A.name = c.name;