Oracle 10g中对已有的表 进行 增 、删 、改 列名


准备工作 查询一个表的语法 eg :select * from table1

Oracle 10g 在已有的表

1.增加一列

eg:alter table table1 add age number(8)

2.删除一列

eg:alter table table1 drop column age

3.更改一列名

eg: alter table table1 rename column age to sex

4.将表名重新命名--如 将表table1更名为test表名

eg:alter table table1 rename to test

eg:select * from test

相关内容