您的位置: 首页 > 文章 > mysql-不能先select出同一表中的某些值,再update这个表(在同一语句中) mysql-不能先select出同一表中的某些值,再update这个表(在同一语句中) 分类: 文章 • 2025-05-16 12:04:28 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;