Reputation: 5059
how to convert a hex string to integer? Postgres way of doing this is here
Adding sample input and output tables below.
table1
+---------+
| hex_val |
+---------+
| 00ff |
| 00b0 |
| 8000 |
| 0050 |
+---------+
output
+---------+
| int_val |
+---------+
| 255 |
| 176 |
| 32768 |
| 80 |
+---------+
Upvotes: 0
Views: 4707