mysql - 如何将新表列匹配并插入到以前的数据库列
解决方案
似乎您需要根据加入进行更新
update table1
inner join table2 ON table2.style = table1.styleCode
set table1.styleType = table2,styleType
推荐阅读
- c++ - 排序数组无法正常工作 C++
- r - 在 R 中,eval 没有在正确的环境中进行评估
- google-sheets - 如何从由两个管道分隔的表数据中提取/导入文本
- python - 尝试在 for 循环中设置列表的每一部分
- tensorflow - 安装张量流有困难
- html - 在 node express.js 应用程序中呈现视图页面的问题
- javascript - 如何从与某个键匹配的 JSON 对象创建一个数组?
- javascript - 如何使用javascript从元素中获取文本并将其保存到.txt文件中的新行?
- javascript - 如何禁用 VSCode Chrome 调试“恢复选项卡”警告?
- java - 我怎样才能把它变成一个for循环?