直接更新所有表 在使用where条件消除笛卡尔积 UPDATE contract co, customer cu SET co.customer_id = cu.id WHERE co.customer_name = cu.name AND co.is_deleted = 0;