Oracle中已有数据的字段类型修改 关联字段
修改Oracle中数据库--字段属性信息
先修改从表
alter table ZHCX_CSCX_GLBXS rename column GLZDID to myGLZDID;
alter table ZHCX_CSCX_GLBXS add GLZDID VARCHAR2(30);
update ZHCX_CSCX_GLBXS set GLZDID = myGLZDID;
alter table ZHCX_CSCX_GLBXS drop column myGLZDID;
再修改主表
alter table ZHCX_CSCX_GLZD rename column GLZDID to myGLZDID;
alter table ZHCX_CSCX_GLZD add GLZDID VARCHAR2(30);
update ZHCX_CSCX_GLZD set GLZDID = myGLZDID;
alter table ZHCX_CSCX_GLZD drop column myGLZDID;
作者:Kevin
邮箱:334081981@qq.com
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.