语句:
alter table tableName rename column oldCName to newCName; -- 修改字段名
alter table tableName modify (cloumnName 数据类型); -- 修改数据类型table
例如:
一、建立表:
CREATE TABLE Student(
id varchar2(32) primary key,
name varchar2(8) not null,
age number
);
二、修改字段名:
alter table Student rename name to StuName;
三、修改数据类型:
alter table Student modify (id varchar2(64));数据类型