mysql将一个表的数据同步到另一个表

2025-02-24 12:27:10
推荐回答(4个)
回答1:

先把a表导出成sql脚本,然后把sql脚本里面的相关字段修改,再导入到b表

回答2:

帮你测试过,正确无误!

Update oluc_user a, player b Set b.password=a.password Where a.UserName = b.UserName;

回答3:

# 未测试
Update oluc_user a,player b Set b.password=a.password Where a.id=b.id;

回答4:

update b set b.password=a.password
from b inner join a on a.username=b.username
where 条件
这样试试