where как будто игнорируется
update appeal.appeal
set clinic_id = r.clinic_id
from appeal.reconciliation r
inner join appeal.appeal a
on r.appeal_id = a.id
where a.clinic_id is null and r.clinic_id is not null
update appeal.appeal as b set clinic_id = r.clinic_id from appeal.reconciliation r inner join appeal.appeal a on r.appeal_id = a.id where a.clinic_id is null and r.clinic_id is not null and a.id = b.id
Обсуждают сегодня