Oracle 多表关联如何更新多个字段


  本文标签:Oracle 多表关联

  以下的文章主要介绍的是Oracle 多表关联更新多个字段 带条件的具体操作方法,如果你是Oracle 多表关联更新多个字段 带条件实际应用方面的新手,你就可以通过以下的文章对Oracle 多表关联更新多个字段 带条件是如何正确使用的方法有一个更好的了解,以下就是文章的详细内容的介绍

  Oracle 多表关联更新多个字段 带条件

  1. update student A  
  2. set (A.name,a.dq) =  
  3. (select B.bname,b.bdq  
  4. from newstudent B  
  5. where B.Bid = A.id  
  6. and A.dq = 10 
  7. )  
  8. where exists (select 1  
  9. from newstudent B  
  10. where B.Bid = A.id  
  11. and A.dq = 10 
  12. );  

  

Oracle 多表关联 

上述的相关内容就是对Oracle 多表关联更新多个字段 带条件以及相关图案的描述,希望会给你带来一些帮助在此方面  。