跨库 批量更新
UPDATE a.table_1up
INNER JOIN (
SELECT
user_id,
user_org_company_id,
FROM
b.table_2
) AS tmp ON up.user_id = tmp.user_id
SET up.company_id = tmp.user_org_company_id,
跨库 批量更新
UPDATE a.table_1up
INNER JOIN (
SELECT
user_id,
user_org_company_id,
FROM
b.table_2
) AS tmp ON up.user_id = tmp.user_id
SET up.company_id = tmp.user_org_company_id,