3个表aaa,bbb,ccc   都只有2列  a char(10)  b char(10)aaa
a   b
1   中国
2   美国
3   俄罗斯bbb
a   b
1
2
3ccc  (没有记录)
a    b
我的问题就是
1:如何把bbb的b更新为aaa的b啊??
2:如何把aaa的a、b插入ccc啊???简单得很唉~~~

解决方案 »

  1.   

    update bbb b set b.b=a.b from aaa a where a.a=b.a
    select * from aaa into ccc
      

  2.   

    第二个 在关键字 'into' 附近有语法错误。
      

  3.   

    update bbb set b=a.b from aaa a where a.a=b.a
    insert into ccc select * from aaa
      

  4.   

    update bbb set b=a.b from aaa a where a=a.a
    insert into ccc select * from aaa
      

  5.   

    update bbb  set b=a.b from aaa a where a.a=a
    insert into ccc select * from aaa