insert into aaa.db select * from bbb.db

解决方案 »

  1.   

    select * into table2 from table1 where .....
    这会建表
      

  2.   

    用EXECSQL代替open试试
    select * into table2 from table1 where 
    是建立永久表
    要将数据库的select into选项设置为真
    sp_dboption 'database','select into',true
      

  3.   

    用SELECT INTO建立数据库新表需要权限,如果是SQLSERVER默认是没有权限的
    所以你需要执行一个存储过程来打开此权限,具体的名字呵呵,不知道。
      

  4.   

    在表名两边加上引号。
    insert into "aaa.db" select Test, Num from "bbb.db" where id=1
      

  5.   

    刚才写错了。在表名两边加上引号。
    insert into "aaa.db" select * from "bbb.db"