当前位置: > c++报错:Input string value is too large to fit into the buffer...
题目
c++报错:Input string value is too large to fit into the buffer
[DBERR 错误:Input string value is too large to fit into the buffer :
insert into temp_info (c1,c2,c3,c4,c5,c6,c7) values(:c1 ,:c2,:c3,to_date(:c4,'YYYYMMDDHH24MISS' ),:c5,:c6,:c7) :Variable::c7,datatype in operator :CHAR]
数据库中针对c7是这样定义的:
create table temp_info (
c1 NUMBER(18) not null,
c2 NUMBER(5) not null,
c3 VARCHAR2(10) not null,
c4 DATE not null,
c5 VARCHAR2(20) not null,
c6 NUMBER(5) not null,
c7 VARCHAR2(2047)
)
程序插入时:
insert into temp_info (c1,c2,c3,c4,c5,c6,c7) values(:c1,:c2,:c3,to_date(:c4,'YYYYMMDDHH24MISS'\
\x05\x05),:c5,:c6,:c7)

提问时间:2021-05-06

答案
可能是 SQL绑定的变量是超过长度的吧,最后一位一定要是\0的 不然就会报这种错
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.