Função String BIN() no Banco de Dados
Retorna um representação string do valor binário de N, onde N é um número muito grande (BIGINT). Isto é equivalente a CONV(N,10,2). Retorna NULL se N é NULL:
mysql> SELECT BIN(12);
-> '1100'