我通过DELPHI单步跟踪可以确定DELPHI中的STRING没有丢失#0,执行存储过程前后Params中对应的Value也没有丢失字符,
但是Oracle存储过程中却只接收了#0前的部分数据。大家遇到类似的问题吗?
心急如焚!

解决方案 »

  1.   


    应该不是的,我单步delphi的时候现实的是 'AAA'#0'AAA'  类似的
      

  2.   

    原来如此,那我该如何解决这个问题〉?
    A null or zero terminated string is an array of characers, indexed by an integer starting from zero. Since the array has no length indicator, Delphi uses the ASCII 0 (NULL; #0) character to  the boundary of the string. 
    This means there is essentially no difference between a null-terminated string and an array[0..NumberOfChars] of type Char, where the end of the string is ed by #0.