MySQL BINARY Function

Example

Convert a value to a binary string:

SELECT BINARY "Iampsp.com";

Definition and Usage

The BINARY function converts a value to a binary string.

 

Syntax

BINARY value

Continue reading MySQL BINARY Function

MySQL BIN Function

Example

Return a binary representation of 15:

SELECT BIN(15);

Definition and Usage

The BIN() function returns a binary representation of a number, as a string value.

Syntax

BIN(number)

Continue reading MySQL BIN Function