UPDATE tableA AS t1, tableB AS t2 SET t1.colA = t2.colB WHERE t1.code = t2.code 转载于:https://www.cnblogs.com/Uzai/p/11376301.html