我用
select  CUSTAGENTNO,CNAME from tabname where rownum<20 order by CUSTAGENTNO 
这样倒是可以看到数据,不过把rownum<20改成rownum<30就报一样的错了,帮我分析分析

解决方案 »

  1.   

    这不代表自增的意思
    order by 别的字段试一下
      

  2.   

    yuaiwu,我弄错了。能否解释一下
    PRIMARY KEY ( CUSTAGENTNO ) 
        USING INDEX 
         TABLESPACE USR PCTFREE 10
         STORAGE ( INITIAL 10485760 NEXT 1048576 PCTINCREASE 1 ))
    是什么意思。我按你的想法试过了,还是一样的错误。不过发现一个新的现象。我用
    select  CUSTAGENTNO from tabname或select  CUSTAGENTNO,FDTYPE from tabname,表中的数据都能读出。只要select中的字段有CNAME,读取数据多(超过20)就报上面的错误。能否帮我分析分析,是否是这个字段出了问题。CNAME字段类型varchar(50)
      

  3.   

    上面的说明有错,读取数据字段多的时候报一样的错误。和cname字段无关
      

  4.   

    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.
      

  5.   

    加大CNAME字段的长度定义!varchar2(200);