Oracle 根据条件批量修改数据

mac2024-02-21  46

 

update ydgl.T_ZHGL_ZLBTZH t set t.yddw_code = ( select w.f_code  from ydzd.T_BASE_ORG_YDDW w 

//条件相同则修改 where w.lj_code = t.lj_code and where.f_name  = t.yddw_name

) where t.yddw_name in ( select w.f_name from ydzd.T_BASE_ORG_YDDW w)  

最新回复(0)