????虽然是菜鸟,但问题绝对高难,我的c盘有db1.mdb和db2.mdb,我想用delphi做个程序把db2里的表1导入到db1里去,如何实现呢??

解决方案 »

  1.   

    用batchmove即可,但是表结构需要一样
    用sql语句嘛
        复制表(只复制结构,源表名:a 新表名:b) 
      SQL:&nbsp;select&nbsp;*&nbsp;into&nbsp;b&nbsp;from&nbsp;a&nbsp;where&nbsp;1<>1&nbsp;  &nbsp;
      说明:拷贝表(拷贝数据,源表名:a&nbsp;目标表名:b)&nbsp;
      SQL:&nbsp;insert&nbsp;into&nbsp;b(a,&nbsp;b,&nbsp;c)&nbsp;select&nbsp;d,e,f&nbsp;from&nbsp;b;
      

  2.   

    复制表(只复制结构,源表名:a&nbsp;新表名:b)&nbsp;
    SQL:&nbsp;select&nbsp;*&nbsp;into&nbsp;b&nbsp;from&nbsp;a&nbsp;where&nbsp;1<>1&nbsp;  &nbsp;
    说明:拷贝表(拷贝数据,源表名:a&nbsp;目标表名:b)&nbsp;
    SQL:&nbsp;insert&nbsp;into&nbsp;b(a,&nbsp;b,&nbsp;c)&nbsp;select&nbsp;d,e,f&nbsp;from&nbsp;b
      

  3.   

    如果db1中没有表1,则先创建,然后再倒出,最后把db2中的表1删除
      

  4.   

    http://community.csdn.net/Expert/topic/3723/3723113.xml?temp=.6555902