Oracle 更改列名

1.  
alter table tableName rename column original_Col to dest_Col ;

eg. (把lrpo 中的列baNo 改为 pNo)

alter table lrpo rename column baNo to pNo ;



2. alter table original_tableName rename to dest_tableName ;

eg. (把 lrpo 表重命名为 lrDom 表)

alter table lrpo rename to lrDom ;

    

    1.删除一列:
alter table rig drop column syscontplan ;
2. 增加一列
alter table rig add syscontplan varchar2(10) ;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2022-02-18
猜你喜欢
  • 2021-11-27
  • 2021-11-17
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案