在兩張表之間使用UPDATE語句


1.

  update   id   set   A=(select   A   from   id,ida   where   id.id=ida.id),B=(select   B   from   id,ida   where   id.id=ida.id),C=(select   C   from   id,ida   where   id.id=ida.id)

 

2. 

  update   id   set   (a,b,c)=(select   a,b,c   from   ida   where   ida.id=id.id);

 

3.

  update   a   set   a.a   =   b.a   ,   a.b   =   b.b   ,   a.c=b.c   from   id   a   ,   ida   b   where   a.id   =   b.id


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM