二维表维护中,一般会有以下操作:
1、增加字段名:
alter table teacher add tage number(10)
2、修改字段类型:
alter table student modify tage valchar2(10)
注意:在修改字段类型的时候,这个表中的该类型下的字段内容必须为空,否则会报错:
3、修改字段名:
alter table student rename column tage to age
4、删除字段:
alter table student drop column tage
5、修改表名
rename student to students
5、删除表:
drop table student