select a.UID,b.UTEXT from aaaa a left join aaaa1 b on a.UID=b.UVALUE

解决方案 »

  1.   

    update AAAA set UName = AAAA1.UText from AAAA1 where AAAA1.UValue = AAAA.UID
      

  2.   

    update AAAA
    set UName =a.UText 
    from (select a.UID,b.UTEXT from aaaa a left join aaaa1 b on a.UID=b.UVALUE)
     a where a.UID= AAAA.UID
      

  3.   

    update AAAA
        set UName = b.UText
        from AAAA a,AAAA1 b
        where a.UID = b.UValue
      

  4.   

    我信“CrazyFor(蚂蚁)”  行
      

  5.   

    update aaaa
    set uname=(select top 1 utext from aaaa1 where uvalue=aaaa.uid)
    应可符合要求,楼上的第5行没变