<<Back to DB Administration Main Page
Conversion from Hex to Decimal and Decimal to Hex in Oracle
Hex to Decimal
SQL> select to_number('10000084', 'xxxxxxxxxx') from dual;TO_NUMBER('10000084','XXXXXXXXXX')
----------------------------------
268435588
1 row selected.
Decimal to hex
SQL> select to_char(268435588, 'xxxxxxxxxxxxxx') from dual;TO_CHAR(268435588,'XXXXXXXXXXXXXX')
---------------------------------------------
10000084
1 row selected.
Comments
Post a Comment