问大家一个简单的问题:
怎么样用存储过程将oracle的表1的数据复制到表2呢~表1和表2的列名完全一样~

解决方案 »

  1.   

    這種用不到存儲過程
    直接merge into
    或insert into 表1 select * from 表2 where not exists (select * from 表1
    where 表1的主鍵=表2的主鍵)
      

  2.   

    不需要吧,create table t1 as select * from t2 where 1=2;
      

  3.   

    INSERT INTO TABLE1 SELECT * FROM TABLE2