select iitem_ from charinfo where charname='111'  
我这样写。。结果 只取到了262个 数字。。
 
 
 
 可这个 iitem_ 设计为<binary>类型   大小有1080 个 数字怎么办啊。。 我现在 只能读取到。。262个数字。。后边还800个读不到- -

解决方案 »

  1.   

    set rowcount 0
    select iitem_ from charinfo where charname='111'   试试
      

  2.   

    select top 1080 iitem_  from charinfo where charname='111'   
      

  3.   

    “设计为<binary>类型 大小有1080 个 数字 ”
    这句话的意思是只每个字段的值都固定有1080个数字?还是指符合条件charname='111'的记录一共有1080个?
      

  4.   

    declare @tb table(id int ,s binary(1080))insert @tb select 1,cast('asdasdfasdf' as binary(1080))
    select *,s,LEN(s) from @tb
    怎么会呢
      

  5.   

    select iitem_ from charinfo where charname='111'   
    我这样写。。结果 只取到了262个 数字。。
     
      
     
     可这个 iitem_ 设计为<binary>类型 大小有1080 个 数字怎么办啊。。 我现在 只能读取到。。262个数字。。后边还800个读不到- -
    ----------------------
    补充:charName  类型:char  大小:16iitem_   类型:binary   大小:1080
    谢谢各位 朋友 帮助我谢谢了
      

  6.   

     结果:0xC3C0C0F600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
      

  7.   

    bu dong bang ding 
      

  8.   

    .......额!你那是插入的数据 还是啥?如果是插入的数据,那么有多长就显示多长了.不会显示到1080
    就好像你的charName 16 你只打了 '111'查询,不可能在后面加些点缀什么的~#~ 
      

  9.   

    select DATALENGTH(iitem_)from charinfo where charname='111' 
    看看數據是多長, 可能是一些不可見的字符
      

  10.   

    回复 楼上的。。
    select DATALENGTH(iitem_)from charinfo where charname='NageID'
    得到的是 1080.select iitem_ from charinfo where charname='NageID' 
    得到的是:   8楼。我发的数据 他这个值  真的没取出完因为我设的还有其他 数。。
      

  11.   

    --tools-option-query result-result text-maxinum of ....
      

  12.   


    查询-->查询选项-->结果-->文本-->每列中显示的最大字符数-->改为你要的,如8000