一、mysql關聯表批量修改
UPDATE sp_sys_dictionaries_category a #根據對應id,把b.username的值賦給a.username LEFT JOIN sp_sys_dictionaries b ON b.cid = a.id SET a.username = b.username
二、sqlserver關聯表批量修改
UPDATE a SET a.FLONGYARN = b.ORGID --根據對應id,把b.ORGID的值賦給a.FLONGYARN FROM ST_LongYarn a LEFT JOIN ST_InspectionRecordOfCaloco b ON b.fid = a.fid