rename tb_old to tb_new;

解决方案 »

  1.   

    rename ori_table_name to tar_table_name
      

  2.   

    rename tablename to newtablename
      

  3.   

    呵呵,也可以使用alter table来重命名表
    alter table old_tab rename to new_tab;
    索引不需要重建
      

  4.   

    rename old_tablename to new_tablename;
      

  5.   

    很多工具支持直接更名,如toad
      

  6.   

    也可以建立一个新表取自源表的数据,尤其是当oracle 805 中 不能使用上述命令时:
    create table new_tab as select * from old_tab;
      

  7.   

    在RENAME,或者是在ALTER 后,索引不需要重新建立(9I)