Description
The BIN( ) function returns a string representation of N, where N is a BIGINT number.
This function has the form:
SELECT BIN(number)
Parameter | Description |
---|---|
number | A number |
Return Value
A string representation of N, where N is a BIGINT number.
Examples
The following example shows the basic use of this function:
mysql> SELECT BIN(12);
-> '1100'