将一个表中的全部记录插入到另一个表中的代码

解决方案 »

  1.   

    Insert Into Table1 (col1,col2,col3,...)
    select (col1,col2,col3,...) from table2
      

  2.   

    select * into b from a
      

  3.   

    试一试:insert into table_b select * from table_a.
      

  4.   

    adoquery1.close;
    adoquery1.sql.add('select * into table2 from table1 ')
    adoquery1.open;//你也可以直接在SQL里面寫下:select * into table2 from table1 然后執行即可!
      

  5.   

    insert into table2(c1,c2,c3,c4,c5,c6)
    select c1,c2,c3,c4,c5,c6 from table1