将B表中符合条件的数据更新到A表中

 update A  set A.COLUMN2=(select distinct(B.COLUMN2) from B   where B.ID=A.ID );

原文地址:https://www.cnblogs.com/hanje/p/10636176.html