需要根据另一个表的关联数据修改当前表
update a set a.id=123 where exists (select 1 from b where a.id=b.id and b.status=1)