[英]How to match and insert new table column to a previous database column
https://imgur.com/a/0443EiL https://imgur.com/a/0443EiL
Above is the image of what I am working with.上面是我正在使用的图像。
I need to insert the Styletype column so that the StyleYype matches up with the StyleCode column.我需要插入 Styletype 列,以便 StyleYype 与 StyleCode 列匹配。
seems you need update based on join似乎您需要根据加入进行更新
update table1
inner join table2 ON table2.style = table1.styleCode
set table1.styleType = table2,styleType
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.