mysql关联多表修改数据
UPDATE testA a INNER JOIN testB b on a.id = b.id
set a.`status` = b.`status`,a.update_time = b.update_time
where b.`status` != 2 ;
UPDATE testA a INNER JOIN testB b on a.id = b.id
set a.`status` = b.`status`,a.update_time = b.update_time
where b.`status` != 2 ;