晕,这也要贴出来啊 alter table t_news drop column id_code id_code 为字段名,t_news 为表名。
看我的执行记录 SQL> select * from t5; A B ---------- ---------- 1 1 1 1 1 1SQL> alter table t5 drop column a;表已更改。SQL> select * from t5; B ---------- 1 1 1没问tia我的oracle 9
大哥啊,我说了是在ORACLE8.05环境啊
在Oracle 8i之后的版本才可以用这个命令:alter table 表名 drop column 字段名,在8i之前的版本,可以通过备份表,然后重建表,拷贝数据的方式来实现.
alter table t_news drop column id_code
id_code 为字段名,t_news 为表名。
SQL> select * from t5; A B
---------- ----------
1 1
1 1
1 1SQL> alter table t5 drop column a;表已更改。SQL> select * from t5; B
----------
1
1
1没问tia我的oracle 9