简体   繁体   English

Oracle数据库错误:ORA-06502:PL / SQL:数字或值错误:字符串缓冲区太小

[英]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.

相关问题 ORA-06502:PL / SQL:数字或值错误:Oracle SQL查询中的字符串缓冲区太小 - ORA-06502: PL/SQL: numeric or value error: character string buffer too small in Oracle sql query Oracle SQL 错误代码 ORA-06502: PL/SQL: numeric or value error: string buffer too small at line 18 - Oracle SQL Error Code ORA-06502: PL/SQL: numeric or value error: character string buffer too small at line 18 ORA-06502:PL/SQL:数字或值错误:字符串缓冲区太小 - ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06502:PL/SQL:数字或值错误:字符串缓冲区太小,只有三个数字 - ORA-06502: PL/SQL: numeric or value error: character string buffer too small only three numbers ORA-06502: PL/SQL: 数字或值错误: 字符串缓冲区太小: 构建时 model - ORA-06502: PL/SQL: numeric or value error: character string buffer too small: When building a model tab_to_string [错误]执行(37:13):ORA-06502:PL / SQL:数字或值错误:字符串缓冲区太小 - tab_to_string [Error] Execution (37: 13): ORA-06502: PL/SQL: numeric or value error: character string buffer too small SQL错误:ORA-06502:PL / SQL:数字或值错误 - SQL Error: ORA-06502: PL/SQL: numeric or value error 奇怪的ORA-06502:PL / SQL:数字或值错误 - Strange ORA-06502: PL/SQL: numeric or value error ORA-06502: PL/SQL: 连接时出现数字或值错误 - ORA-06502: PL/SQL: numeric or value error when concatenating 获取ORA-06502:PL / SQL:数字或值错误:SQL触发器中的字符到数字转换错误 - Getting ORA-06502: PL/SQL: numeric or value error: character to number conversion error in SQL trigger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM