Dsn1-TABLE1
Dsn2-TABLE2
如何使table1得到的数据插入到table2中
有没有比较简单的方法?

解决方案 »

  1.   

    先Select * From table1然后对table1对应的rs作循环
    循环内insert into table2
      

  2.   

    这个方法当然可以,但是如果有40-50个字段,这个Insert语句岂不是很长??
    或者有什么简单的SQL语句??!!
      

  3.   

    这样 Cnn.begintrans
    on error goto InsertNew
       cnn.execute("insert into Table2 select * from Table1")
       cnn.committrans
       exit sub
    InsertNew:
       msgbox "Insert Error!"
      

  4.   

    楼上的!你这样不只有一个数据库了吗?一个CONN只能连一个数据库吧!
       111!!!!!!!!!!!!!!!!!!!!!!!!!!