mysql根据表b更新表a的数据

先将excel导入mysql数据库,参考:

https://blog.csdn.net/qq_38666502/article/details/84026601

然后运行:

UPDATE sean_t_baojia_new a,
test2018 b
SET a.SupplierID = b.id
WHERE
a.Supplier = b.comname
AND a.IsDel = 0
AND a.isyuanliao = '原料';

注意相关字段添加索引!比如标红的字段!

猜你喜欢

转载自blog.csdn.net/qq_38666502/article/details/84035959
今日推荐