insert into table_b (id,name) select id,name from table_a;

解决方案 »

  1.   

    insert into table_b (id,name) select id,name from table_a where rownum<2;
      

  2.   

    这能行吗?
    insert into table_b (id,name) select id,name from table_a where rownum<2
      

  3.   

    写Oracle触发器在对自己所要操作的表进行触发时要特别的注意
      

  4.   

    各位有解决方法的请告知,我上面的触发器是用在记录行Insert时触发的。 有大侠说是叫我做成序列的触发器,我没做过,谁能告知是什么?
      

  5.   

    create trigger a_ari
    before insert on a
    for each rowBEGIN
    insert into 表B(字段1,字段2,字段3,字段4) values(:new.id+1,:new.字段2,:new.字段3,:new.字段4);
    end;
    /