日期:2014-05-17 浏览次数:20840 次
update B t1 set t1.k3=t2.k3 from (select * from A@db_link) t2 where t1.id=t2.id
--首先检查你的db_link是否能正常连通,如果能连通的话执行下面语句 update B t1 set t1.k3 = (select t2.k3 from A@db_link t2 where t1.id = t2.id) where exists (select 1 from A@db_link t2 where t1.id = t2.id)