MySQL CONV Function

Example

Convert a number from numeric base system 10 to numeric base system 2:

SELECT CONV(15, 10, 2);

Definition and Usage

The CONV() function converts a number from one numeric base system to another, and returns the result as a string value.

Note: This function returns NULL if any of the parameters are NULL.

 

Syntax

CONV(number, from_base, to_base)

Continue reading MySQL CONV Function