If you are using 8.1.5 and above you can use:
To convert from hexadecimal to decimal:
select to_number('AA', 'xx') from dual;
To convert from decimal to hexadecimal:
select to_char(111, 'xxxx') from dual;
More Related Contents:
- Can we update primary key values of a table?
- Oracle (ORA-02270) : no matching unique or primary key for this column-list error
- How to display table data more clearly in oracle sqlplus
- Liquibase lock – reasons?
- How SID is different from Service name in Oracle tnsnames.ora
- Are foreign keys really necessary in a database design?
- Is it possible to generate django models from the database?
- What is a View in Oracle?
- What is the difference between Non-Repeatable Read and Phantom Read?
- Business Logic: Database or Application Layer
- Convert String ISO-8601 date to oracle’s timestamp datatype
- What is the default Precision and Scale for a Number in Oracle?
- How to select the nth row in a SQL database table?
- ORA-00904: invalid identifier
- Why am I getting “Data source name not found and no default driver specified” and how do I fix it?
- What’s wrong with foreign keys?
- How to get a count of number of documents in a collection with Cloud Firestore [duplicate]
- Would you store binary data in database or in file system? [closed]
- Difference between 3NF and BCNF in simple terms (must be able to explain to an 8-year old)
- Store query result in a variable using in PL/pgSQL
- How do ACID and database transactions work?
- Fabric.js – how to save canvas on server with custom attributes
- how to use Blob datatype in Postgres
- Are database triggers necessary? [closed]
- many-to-many relationship in database design
- HTML5 database storage (SQL lite) – few questions
- Adding a new value to an existing ENUM Type
- What’s the better database design: more tables or more columns?
- Android Room Persistence library and Kotlin
- How can I import a .sql file into my Heroku postgres database?