[英]Oracle Database Error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
I am getting the character string buffer too small error on the field below. 我在下面的字段上得到字符串缓冲区太小的错误。
DBMS_LOB.SUBSTR(DW.RESPONSE.OPTION_VALUE)
is in the select statement that is causing the error. DBMS_LOB.SUBSTR(DW.RESPONSE.OPTION_VALUE)
位于导致错误的select语句中。 It is a CLOB
data type. 它是
CLOB
数据类型。
I really am only looking for the word 'yes' so is there a way to limit the results or stop the error? 我真的只是在寻找'是'这个词,所以有没有办法限制结果或停止错误? I've tried the following but still get the same error.
我尝试了以下但仍然得到相同的错误。
UPPER(TRIM(CAST(DW.RESPONSE.OPTION_VALUE AS VARCHAR(100))))
DBMS_LOB.SUBSTR(DW.RESPONSE.OPTION_VALUE,8000)
If you only want to find the word or phrase 'YES' why not use the INSTR function? 如果您只想找到单词或短语'YES',为什么不使用INSTR功能? https://docs.oracle.com/database/121/SQLRF/functions089.htm#SQLRF00651
https://docs.oracle.com/database/121/SQLRF/functions089.htm#SQLRF00651
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.