我找到了第一个问题: create table new_tb as select * from old_tb
还有其它办法吧

解决方案 »

  1.   

    我找到了第一个问题: create table new_tb as select * from old_tb
    还有其它办法吧
      

  2.   

    1. rename ....
        或 create table reg_tab as select * from reg;
         drop table reg;
     2. alter table reg_tab add (fromid number(2));
     
     3.alter table reg_tab modify (fromid   number(2) null);
      

  3.   

    2. 我想在reg_tab 中添加一个字段,fromid 为number(2)型?但这个字段要在已有字段Company的前面???即产生的新的字段在company之前?
    --> basically can not unless you recreate your table
      

  4.   

    1.rename
    2.recreate table
    3....
    http://gigabase.idi.ntnu.no/oradoc/server.901/a90125/statements_32.htm#2054899