求教:informix报错
用c++写的数据库入库程序,在执行insert语句时,在oracle中可以执行成功,可是在informix中报错如下:Error on executing statement : {error} STATE=41, CODE=-1213, MSG=[ODBC 20101
driver]Character to numeric conversion error,数据库中的表都一样,各位谁遇到这种情况,指点下。 用c++写的数据库入库程序,在执行insert语句时,在oracle中可以执行成功,可是在informix中报错如下:
...
candytao819 发表于 2010-07-22 17:33 http://bbs3.chinaunix.net/images/common/back.gif
-1213
A character to numeric conversion process failed.
A character value is being converted to numeric form for storage in a numeric column or variable. However, the character string cannot be interpreted as a number. It contains some characters other than white space, digits, a sign, a decimal, or the letter e; or the parts are in the wrong order, so the number cannot be deciphered.
If you are using NLS, the decimal character or thousands separator might be wrong for your locale. 回复 2# liaosnet
这个额也查到了,可是100多个变量没法去定位是哪个,而且oracle的库是可以入库的。 回复liaosnet
这个额也查到了,可是100多个变量没法去定位是哪个,而且oracle的库是可以入库的 ...
candytao819 发表于 2010-07-22 19:00 http://bbs3.chinaunix.net/images/common/back.gif
找变量是字符型的..但数据库里是int型的... 本帖最后由 3sane 于 2010-07-23 10:34 编辑
回复 1# candytao819
一般允许+-,.,如果有空格等在中间则转换不成功了,建议把表结构的int先改成char,然后查看下?比如unload出来或者直接insert到int的表,看具体哪行出错了。
页:
[1]