ORACLE修改列名与列类型

--修改列名

alter table 表名 rename column 旧列名 to 新列名;

--修改列类型

alter table 表名 modify (列名varchar(255));

删除表的一列:

alter table  表名  drop column 列名

给表增加一列:

alter table 表名  add 列名   类型   default< not null>; 

案列:

ALTER TABLE TABLE_ABC  ADD COLUMN_AAA  NUMBER DEFAULT 10000  NOT NULL ; 

 

posted @ 2017-12-01 09:19  黄景新  阅读(41575)  评论(0编辑  收藏  举报