1、將十進制轉換為十六進制 to_char
select to_char(10,'xxx') from dual;
2、將十六進制轉換為十進制 to_number,注意'xxx',如果轉換的數比較大,要多寫幾個,避免位數不足而報錯
select to_number('000001','xxxxxx') from dual;
參考地址
ORACLE使用函數對二進制、十進制、十六進制數互相轉換:https://blog.csdn.net/haibusuanyun/article/details/14103801