#执行脚本
UPDATE gy_account.gy_user,
gy_project.project_user
SET gy_project.project_user.career = gy_account.gy_user.career
WHERE
gy_account.gy_user.userName= gy_project.project_user.userName;
表结构如下:
,
关联字段userName,sql执行之前 project_usercareer字段为空
#执行脚本
UPDATE gy_account.gy_user,
gy_project.project_user
SET gy_project.project_user.career = gy_account.gy_user.career
WHERE
gy_account.gy_user.userName= gy_project.project_user.userName;
表结构如下:
,
关联字段userName,sql执行之前 project_usercareer字段为空