alter table student  rename new_student 这样就可以修改表名
alter table student rename column name to new_name 这样不能修改列名么? 那要怎么做呢 

解决方案 »

  1.   

    alter table student rename column name to new_name
    这样可以,但是好象要9i以上的版本才支持
      

  2.   

    alter table tt add col1 varchar2(100);
    update tt set col1=colOld;
    alter table drop colOld;
      

  3.   

    alter table tt add col1 varchar2(100); 
    update tt set col1=colOld; alter table tt drop column colOld
      

  4.   

    alter table aa drop column ...
    alter table aa add column ...