a 表和 b 表的结构 都一样。 a 表是存在的
因为字段比较多,不想写字段了。
insert into a select * from b。
不知道怎么写能实现全表数据copy。高手帮忙。

解决方案 »

  1.   

    insert into b select * from a
      

  2.   

    a,b表结构一致,insert into a select * from b 是可以的
      

  3.   

    不管是 a copy 到b 还是。b copy 到a
    这样写 报错。ORA-00947: 没有足够的值
      

  4.   


    insert into a select * from b 你这样就是全表负责 把b表的数据全部复制给a表
      

  5.   

    insert into a select * from b
    两表结构一样是可以实现的
      

  6.   


    create table bkp_table as select * from original_table;