两张表中某个子段的关联
程序员文章站
2022-05-03 10:30:42
...
update examination set patient_id = (select patient_id from match where match.treatment_id=examination.treatment_id) where examination.treatment_id in (select treatment_id from match)
推荐阅读