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
Convert a value to a binary string:
SELECT BINARY "Iampsp.com";
The BINARY function converts a value to a binary string.
BINARY value
Return a binary representation of 15:
SELECT BIN(15);
The BIN() function returns a binary representation of a number, as a string value.
BIN(number)