Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Something to ponder ..
May be you would do:
v734> SELECT RAWTOHEX(HEXTORAW('1234')) from dual;
RAWT
What you made is to translate the hexadecimal value of the string '1234' that is 0x31323334 to the string '31323334' and then back to a raw that is implicitly converted to the string '31323334' by the select to display the value.
--
Have a nice day
Michel
Paul Baker <paul.baker_at_lvs.co.uk> a écrit dans le message :
86mmfp$j9a$1_at_soap.pipex.net...
> Can anyone explain the following?
>
> SQLWKS> SELECT HEXTORAW(RAWTOHEX('1234')) from dual;
>
> HEXTORAW
> --------
> 31323334
> 1 row selected.
>
> I would expect 1234 to be returned .. am I being stupid?
>
>
Received on Wed Jan 26 2000 - 10:40:23 CST