第一步:添加一个clob类型的字段
alter table nlphistory_pat add (answer_bak clob);
第二部:将原来字段的值拷贝到新建的clob字段
update nlphistory_pat set answer_bak = answer ;
第三步:删除原来的字段
alter table nlphistory_pat drop column answer;
第四步:将新建的clob字段的名字修改为原来的字段的名字
alter table nlphistory_pat rename column answer_bak to answer;
第五步:提交
commit;
Oracle 将普通字段类型改为Clob类型的方法
最新推荐文章于 2025-01-03 06:00:00 发布
本文介绍了一种使用SQL语句操作CLOB类型字段的方法,包括添加、复制、删除和重命名字段的过程,以实现数据的迁移与重构。
2748

被折叠的 条评论
为什么被折叠?



