Oracle 联合表更新某一个表的字段

 

 要通过关联表来更新某个字段

update SYNRECORD d set d.BUSINESSNAME =(select c.orgName from RECORD a, ORGAN c where c.Userid = a.Applyuserid and a.dealnumber = d.businessid)
where exists (select 1 from GPRECORD a, SOORGAN c where c.Userid = a.Applyuserid and a.dealnumber = d.businessid) and d.BUSINESSNAME like ‘%?%‘

   其中 RECORD.dealNumber = synrecord.businessid,  ORGAN.userid= RECORD.APPLYUSERID

Oracle 联合表更新某一个表的字段

上一篇:MySQL如何创建索引


下一篇:MYSQL慢查询的应用