wzxbk
语句:
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-12-10
  • 2021-11-28
  • 2022-02-01
  • 2022-02-09
  • 2022-12-23
  • 2021-11-28
  • 2021-08-20
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-01-05
  • 2021-11-20
  • 2021-11-17
  • 2021-11-28
  • 2021-11-28
  • 2021-11-20
相关资源
相似解决方案