BIN Function

Description

The BIN function converts a BIGINT type number into binary string. If an input string is NULL, NULL is returned.

Syntax

BIN( n )

Example

SELECT BIN(12);

'1100'