Dean Taler
Dean Taler

Reputation: 753

how to convert hex to decimal in sql query?

I'm trying to get data based on a specific field (int) with a hex "input"

select *
from table
where id = to_base(7F1943EE,10)

how can I convert 7F1943EE to decimal value?

Upvotes: 0

Views: 1485

Answers (1)

Job Curtis
Job Curtis

Reputation: 175

You want conv();

SELECT conv('7F1943EE', 16, 10);

Upvotes: 3

Related Questions