insert into 表1(name)
select name from 表2

解决方案 »

  1.   

    insert into 表1
    select name,NULL,NULL from 表2
      

  2.   

    也可以用
    Select 表1.name into 表2 
    生成一个表2。然后再用Alter tabel给表2增加两列就行了。
      

  3.   

    insert into table11(name) select name from table2;
    最经典,还省事。
      

  4.   

    tabel2的id字段最好是自动加1的,作为主键。
      

  5.   

    或:insert into a(id,name) values('1',(select id from b where rownum<=1));
      

  6.   


     如果表2的记录很多,可以采用 direct load   alter table table1 nologging;
       insert /*+ append */ into table1 select ... ;
       commit;
      
       如果表1有索引,可以先禁用索引,导入完毕后重建一下就可以了。