mysql中使用update同时更新多个字段,包括select查询_mysql update select多字段-CSDN博客
文章浏览阅读9.3w次,点赞42次,收藏48次。错误尝试:update 表名 set(字段1,字段2,字段3,...) = (select 数值1,数值2,数值3,...) where 条件 正确方式:# 不使用select情况UPDATE OldData o, NewData n SET o.name = n.name, o.address = n.address where n.nid=234 and o.id=123;..._mysql update select多字段