update tabel1 set name=table2.Name where table1.num=table2.num
你试一下吧

解决方案 »

  1.   

    Please try:update table1
    set name=(select table2.name from table2,table1 where table2.num=table1.num)
    where num in (select num from table2.num)
      

  2.   

    update table1 set name = table2.name from table2 where table1.num = table2.num
      

  3.   

    update table1
    set table1.name=(select table2.name from table2 where table2.num=num)
    where table1.num in (select num from table2)
      

  4.   

    update table1 from table2 set name=talbe2.name
    where num=table2.num
      

  5.   

    if exists (SELECT table2.[name] from table2 ,table1
    where table1.num=table2.num)
    begin
    declare @aa varchar(20)
    declare aa cursor for 
    SELECT table2.[name] from table2 ,table1 where table1.num=table2.num
    open aa
    fetch next from aa into @aa
    while @@fetch_status=0
    begin
    update table1
    set [name]=@aa
    where current of aa
    fetch next from aa into @aa
    end
    close aa
    deallocate aa
    end
      

  6.   

    谢谢大家 我在ACCESS试过了,好象都不行,望指点!
      

  7.   

    楼上 kaikaihe(开开)的正确
    高手啊!!!
    我等低手真是自叹不如