insert into table1 select * from table2

解决方案 »

  1.   

    insert into table1 (field1,field2,field3) (select field1,field2,field3 from table2)
      

  2.   

    With ADOQuery1 Do
      Begin
        Close;
        SQl.Clear;
        SQl.add('insert into 被添加记录的表TABLE select * from 源表TABLE');
        ExecSQL;
      End;
      

  3.   

    insert into table1 (select * from table2) 
      

  4.   

    如果两个表真实存在 insert into table1(select * from table2)
    如果有一个是临时表 select * into #tabletmp from table1别不给分哦,我刚来,还没得过分
      

  5.   

    batchmove组件那里有?对了,这两个表在不同的SQL Server服务器上(在两台不同的计算机上)
      

  6.   

    insert into table1
    select * from table2
    where not exists (select * from table1
                       where table2.PK = table1.PK)
      

  7.   

    select into
    有一点危险,没有事务