首页 > 数据库技术 > 详细

oracle clob与nclob的互相转换

时间:2018-05-07 18:20:34      阅读:416      评论:0      收藏:0      [点我收藏+]
 drop table clobTets
 create table clobTets(
 col1 nclob
 )
 select * from clobTets
 insert into clobTets values(‘11111‘)
 alter table clobTets add (col2 varchar2(4000))
 update clobTets set col2 = dbms_lob.substr(col1,4000)
 alter table clobTets drop column col1
 alter table clobTets rename column col2 to col1; 
 
 alter table clobTets add (col2 clob)
 update clobTets set col2 = col1
 alter table clobTets drop column col1
 alter table clobTets rename column col2 to col1;

 

oracle clob与nclob的互相转换

原文:https://www.cnblogs.com/lxh520/p/9004130.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!