Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: substr, substrb and raw datatype
HansF wrote:
> On Tue, 14 Jun 2005 20:34:57 +0200, Rafal Dabrowa interested us by
>>inconsistent with behavior of length/lengthb function pair. >>Both functions return the same value for raw fields.
But, for a 10-byte RAW value, both length and lengthb return 20. Although, lengthb works on a byte-oriented string, like substrb does. So, if substrb does not perform a conversion, lengthb shouldn't, too. If lengthb wouldn't perform a conversion, it would return 10, not 20.
-- Rafal sed -e s/s/a/g <my_address >my_right_addressReceived on Tue Jun 14 2005 - 15:38:11 CDT