修改varchar类型字段为clob类型步骤:
alter table SFJ_RMTJ_AJ add HZ2 clob
update SFJ_RMTJ_AJ set HZ2 = HZ;
alter table SFJ_RMTJ_AJ drop column HZ
alter table SFJ_RMTJ_AJ rename column HZ2 to HZ;
select HZ from SFJ_RMTJ_AJ;
修改varchar类型字段为clob类型步骤:
alter table SFJ_RMTJ_AJ add HZ2 clob
update SFJ_RMTJ_AJ set HZ2 = HZ;
alter table SFJ_RMTJ_AJ drop column HZ
alter table SFJ_RMTJ_AJ rename column HZ2 to HZ;
select HZ from SFJ_RMTJ_AJ;
本文标题:达梦数据库修改字段类型
本文链接:https://www.haomeiwen.com/subject/ejrmcrtx.html
网友评论