作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
尝试使用选择查询语句。输入变量如预期的那样有 8 个字符。
我不知道为什么选择查询会出现此错误,因为对于选择查询,它将查询并且如果它可用,它将返回,否则它将重新调整空白行。
使用 hibernate 。即使在映射中,它也只能正确映射为 8。
这是我在日志文件中发现的:
Cause = com.ibm.db2.jcc.a.SqlException: The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use.
有没有人遇到过这个错误?请给我一些关于为什么会发生此错误的解决方案。
最佳答案
一种可能性……这个问题甚至可能出现在 SELECT 语句中。当传递给查询的参数大于其数据类型的大小时,将弹出此错误。
示例:
Datatype - CHAR(12)
Search Param: "123456789012345"
关于sql - 查询 : The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8137515/
我是一名优秀的程序员,十分优秀!