oracle 跨表更新
时间:2011-04-06 来源:小さいです哥
update AllPunishment a set (a.CreditID)=(select b.CreditID from CorporationMainTable b where b.CorporationName=a.CorporationName and b.OrganizationCode=a.OrganizationCode and rownum =1) where exists (select 1 from CorporationMainTable b where b.CreditID=a.CreditID)
相关阅读 更多 +