fx-blog
语句:
alter table tableName rename column oldCName to newCName; -- 修改字段名

alter table tableName modify (cloumnName 数据类型); -- 修改数据类型

例如:
1、创建表:
  CREATE TABLE Student(
    id varchar2(32) primary key,
    name varchar2(8) not null,
    age number
  );
2、修改字段名:
  alter table Student rename name to StuName;
3、修改数据类型:
  alter table Student modify (id
varchar2(64));
 

分类:

技术点:

相关文章:

  • 2021-08-11
  • 2021-11-20
  • 2021-11-28
  • 2021-12-21
  • 2021-12-23
猜你喜欢
  • 2021-12-28
  • 2021-11-17
  • 2021-12-08
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案