alter table tbl add no varchar(10);
update tbl set no=id
alter table tbl drop column id
update tbl set no=id
alter table tbl drop column id
解决方案 »
- oracle查询(求救!求救!求救!求救!求救!求救!求救!求救!求救!)
- 求实现这样一个功能——简历(之二):
- 请问,表里有ip字符串字段,如何查询某段的IP地址呢
- 数据类型number(m,n)中n的具体含义是什么?
- 数据类型转换的问题
- 求助SQLLDR 数据装载问题 急!!!
- pl/sql为何总是说invalid character!
- plsql联oracle92报错:Error while trying to retrive text for error ORA-01019
- 我在那里可以看到我建立的触发器?
- ADOStoreProc控件调用procedure的错误?c++builder高手请进
- 请问default可以这样用吗?
- 怎样完全卸载Oracle8
alter table 表名 rename column 旧的属性名 to 新的属性名;oracle9i之前的好像不行,可以曲线更改
alter table 表名 add 新字段 (你想改成的)
update 表名 set 新字段=旧字段 (赋值)
alter table 表名 drop column 老字段 (删除原来的)
2 ;
alter table bc rename column ac to aa
*
ERROR at line 1:
ORA-14155: missing PARTITION or SUBPARTITION keywordSQL> select * from v$version
2 ;BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
PL/SQL Release 9.0.1.1.1 - Production
CORE 9.0.1.1.1 Production
TNS for 32-bit Windows: Version 9.0.1.1.0 - Production
NLSRTL Version 9.0.1.1.1 - Production
alter table 表名 rename column 旧的属性名 to 新的属性名;
是可以正确执行的!