[img]http://dl2.iteye.com/upload/attachment/0097/1001/8c9fe3c3-ea01-39f9-84c7-a1909c17548d.jpg[/img]
准备工作 查询一个表的语法 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
准备工作 查询一个表的语法 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
1174

被折叠的 条评论
为什么被折叠?



