Syntax
bin(N)
Purpose
You can call this function to return the binary form of the number N. This function is equivalent to CONV(N,10,2).
If N is NULL, NULL is returned.
Examples
obclient> SELECT BIN(12);
+---------+
BIN(12)
+---------+
1100
+---------+
1 row in set (0.00 sec)