ITPub博客

首页 > 数据库 > Oracle > 查LOB文本内容报错ORA-06502: numeric or value error: character string buffer..

查LOB文本内容报错ORA-06502: numeric or value error: character string buffer..

Oracle 作者:eddy0lion 时间:2020-10-02 15:40:47 0 删除 编辑

不超过 3833 个字符的显示办法:

    Oracle clob 数据类型查询显示:使用 oracle package dbms_lob 的方法 substr() ,不传入参,例如:    

select dbms_lob.substr(info.request) from D_REQUEST_QUEUE_INFO info where info.request is not null and rownum<20;

 

LOB 字段显示超过 3833 个字符,无法查出的解决方案:

select dbms_lob.substr(t.r) from (
     select info.request r, dbms_lob.getlength(info.request) l from D_REQUEST_QUEUE_INFO info where
         info.request is not null
    ) t where t.l<3833;

  原文地址 < https://blog.csdn.net/weixin_33901641/article/details/91921393 >


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28853590/viewspace-2725402/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2015-11-05

  • 博文量
    47
  • 访问量
    81773