insert into table1 using select * from table2

解决方案 »

  1.   

    insert into table1 select * from table2;
      

  2.   

    beckham得就可以insert into table1 values (select * from table2);
    这种写法是那种数据库中的用法?
      

  3.   

    insert into table from (select * from table2)
      

  4.   

    insert into table1 select * from table2;
    的用法,你要注意,是数据库的结构和循序要一致,不然就不行,如果不一致你可以把字段列出来,insert into table1 (col1,col2) select col1,coll2 from table2;
      

  5.   


    create table new_table as select * from old_table建个新表并复制原来旧表的所有内容
      

  6.   

    insert into t (select * form t2)