The BIN function converts a BIGINT type number into binary string. If an input string is NULL, NULL is returned.
BIN( n )
SELECT BIN(12);
'1100'