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

来源:这里教程网 时间:2026-03-03 16:12:12 作者:

不超过 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 >

相关推荐