Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: sql
Because of the space in first position:
v815> select to_char(257,'0XXXXX') from dual;
TO_CHAR
1 row selected.
v815> select hextoraw(to_char(257,'0XXXXX')) from dual; select hextoraw(to_char(257,'0XXXXX')) from dual
*
v815>
v815> select hextoraw(ltrim(to_char(257,'0XXXXX'))) from dual;
HEXTORAW
1 row selected.
-- Have a nice day Michel Marcin Buchwald <velvet_at_gazeta.pl> a écrit dans le message : 398FFAED.ADD6E59D_at_gazeta.pl...Received on Tue Aug 08 2000 - 00:00:00 CDT
>
> select to_char(257,'0XXXXX') from dual;
> select hextoraw('000101') from dual;
> select hextoraw(to_char(257,'0XXXXX')) from dual;
>
> what is the reason that third statement fails ?