`
哇哈哈852
  • 浏览: 87787 次
文章分类
社区版块
存档分类
最新评论

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
  • 大小: 26.6 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics