BIN
Return the binary representation of a number. This function converts a number to its binary string equivalent.
Syntax
BIN(N)Description
Examples
SELECT BIN(12);
+---------+
| BIN(12) |
+---------+
| 1100 |
+---------+See Also
Last updated
Was this helpful?

