举例:修改列 updatecol

1新建一个列newcol

alter table SG_T_DAYPLAN_C  add xiansu2  clob;

2把 updatecol值付给newcol

update SG_T_DAYPLAN_C set xiansu2=xiansu;

3删除 updatecol

alter table SG_T_DAYPLAN_C drop column xiansu;

4把newcol更名为updatecol

alter table SG_T_DAYPLAN_C rename COLUMN  xiansu2 to xiansu ;

笑图:

数据库中表字段已存入数据,如何修改表字段的类型?

相关文章:

  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-11-20
  • 2021-12-10
  • 2021-11-28
猜你喜欢
  • 2021-11-28
  • 2021-11-28
  • 2021-06-10
  • 2022-12-23
  • 2021-12-28
  • 2021-11-28
  • 2021-11-28
相关资源
相似解决方案