This tutorial explains how to use the MySQL CONV function with syntax and examples.
The MySQL CONV function converts a number from one number base to another and returns the result as a string value.
The syntax for the CONV function in MySQL is:
The number to convert.
The number base that the number is currently represented in. The from_base can be between 2 and 36.
The number base to convert to. The to_base can be between 2 and 36, or -2 and -36.
The CONV function can be used in the following versions of MySQL:
Let's look at some MySQL CONV function examples and explore how to use the CONV function in MySQL.
For example: