oracle 跨表更新

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)
posted @ 2011-04-06 12:33  小さいです哥  阅读(246)  评论(0编辑  收藏  举报