Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How do you display hex via SQL
select to_char(123456,'XXXXXXXXXXXXXXX') from dual;
1E240
select to_number(' 1E240','XXXXXXXXXXXXXXX') from dual;
123456
Waleed
-----Original Message-----
From: Warren Homer [mailto:wazhomer_at_hotmail.com]=20
Sent: Thursday, July 15, 2004 10:27 PM
To: oracle-l_at_freelists.org
Subject: How do you display hex via SQL
Hi ,
is there a way via Oracle SQL to display the hex representation of a number.
e.g select hex(57) from dual;
39
Thanks in advance.
Warren.
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlput 'unsubscribe' in the subject line.
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to: oracle-l-request_at_freelists.org