哦,错了t2的结果应该是
pk2     a        b         d
10      good     csdn      null
13      java     jsp       d

解决方案 »

  1.   

    select a.pk2,c.a,d.b,a.d
    from t2 a , t3 b,t1 c,t1 d
    where a.pk2=b.pk2 and b.pk1=c.pk1 
    and a.pk2=b.pk2 and b.pk1=d.pk1
      

  2.   

    update t2
    set a=t1.a,b=t1.b
    from t2
    where exists(select * from t1,t3  where t2.pk2=t3.pk2 and t3.pk1=t1.pk1)
      

  3.   

    select t2.pk2,t1.a,t1.b,t1.c from t2 join t3 on t2.pk2=t3.pk2 join t1 on t3.pk1=t1.pk1
      

  4.   

    或:
    select t2.pk2,t1.a,t1.b,t1.c from t2,t3,t1 where t2.pk2=t3.pk2 and t3.pk1=t1.pk1
      

  5.   

    哈哈。。上面跟着你的题目错了是这样的:select t2.pk2,t1.a,t1.b,t2.c from t2 join t3 on t2.pk2=t3.pk2 join t1 on t3.pk1=t1.pk1或:select t2.pk2,t1.a,t1.b,t2.c from t2,t3,t1 where t2.pk2=t3.pk2 and t3.pk1=t1.pk1
      

  6.   

    晕~select t2.pk2,t1.a,t1.b,t2.d from t2 join t3 on t2.pk2=t3.pk2 join t1 on t3.pk1=t1.pk1
    或:
    select t2.pk2,t1.a,t1.b,t2.d from t2,t3,t1 where t2.pk2=t3.pk2 and t3.pk1=t1.pk1
      

  7.   

    晕~
    不知道是我说错了还是怎么的,我是要更新(update)t2的不是检索(select)
    55555555555555
      

  8.   

    lwzlemon(stone) 的基本正确,非常感谢,结贴
      

  9.   

    lwzlemon(stone) 说的基本正确,非常感谢,结贴
      

  10.   

    Update t2 Set t2.a=tmp.a,t2.b=tmp.b from
    (select t1.a,t1.b,t3.pk2 from t1 inner join t3 on t1.pk1=t3.pk1) tmp where t2.pk2=tmp.pk2