Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3902505
  • 博文数量: 534
  • 博客积分: 10470
  • 博客等级: 上将
  • 技术积分: 4800
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-26 14:08
文章分类

全部博文(534)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(2)

2013年(2)

2012年(10)

2011年(43)

2010年(10)

2009年(17)

2008年(121)

2007年(253)

2006年(73)

分类: Oracle

2008-06-30 16:16:50

ORA-01406:    
        fetched column value was truncated
Cause:    
        In a host language program, a FETCH operation was forced to truncate a character string. The program buffer area for this column was not large enough to contain the entire string. The cursor return code from the fetch was +3.
Action:    
        Increase the column buffer area to hold the largest column value or perform other appropriate processing.

自己遇到了好多次这个问题,我遇到的问题一般是:

如:
        TAB1(col1 VARCHAR2(20));
                
        表中col1字段本来长度是20的,但我在OCI中取该字段数据用的长度小于20就出现ORA-01406问题了.   
        
阅读(2378) | 评论(0) | 转发(0) |
0

上一篇:OCI 指示器变量!

下一篇:sqlplus的小秘密 (1)

给主人留下些什么吧!~~