Chinaunix首页 | 论坛 | 博客
  • 博客访问: 263560
  • 博文数量: 51
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 606
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-13 16:43
文章分类

全部博文(51)

文章存档

2011年(1)

2010年(3)

2009年(45)

2008年(2)

我的朋友

分类: LINUX

2009-05-27 15:09:04

1.oracle错误解释是
01480, 00000, "trailing null missing from STR bind value"
// *Cause:  A bind variable of type 5 (null-terminated string) does
//         not contain the terminating null in its buffer.
// *Action: Terminate the string with a null character
意思是赋值字段中字符串有未结束
2.情况是数据超长.
  例如:
  日期字段:由于自定义变量procees_date[11]。memset之后从表取8位日期字段取到数据后值为[20070110  ],
  使用它插入8为日期字段表时报未字符串未结束。
3.原因10位数据超过8位的定义长度。
4.结论:
  在定义数据库存取变量最好根据数据表长度。
阅读(13759) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~