1

I have IPv4 address stored in DB as VARBINARY(4): four bytes of an unsigned integer. Very strange approach, yes :)

How do I convert it to an unsigned integer in MySQL?

1 Answer 1

4

Bad & slow solution: CONV(HEX(table.ip),16,10)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.