insert into table1 select * from table2

解决方案 »

  1.   

    insert table 
    select * from table2三少 :o)
      

  2.   

     用TQuery 做好象不行!
    那位高手能够指点一下:)
      

  3.   

    用TTable做
    可以使用TBatchMove组件,具体可以看帮助!很简单方便
      

  4.   

    我同意flyby的看法,可以试试。
      

  5.   

    用Query怎么不行,你好好检查一下SQL语句
      

  6.   

            TBatchMove *BatchMove1=new TBatchMove(Application);
            BatchMove1->Source = Query1;
            BatchMove1->Destination = Table1;
            BatchMove1->Mode = batCopy;
            BatchMove1->Execute();
            delete BatchMove1;
      

  7.   

    更正:
        BatchMove1->Mode = batAppend;
      

  8.   

    一个字段一个字段加吧:
    with DesTable do
    begin
      Len:=FeildDefs.Count -1;
      for i:=0 to Len do
        Fields[i].Value:=SourceTable.Fields[i].Value;
      Post;
    end;
    这么简单,不会吐血吧(嘛)。哈哈。