bin
Transforms the input arg
into a binary.
Syntaxβ
bin(arg)
Parameterβ
arg
: the input you want to transform into a binary. It supports the BIGINT data type.
Return valueβ
Returns a value of the VARCHAR data type.
Examplesβ
mysql> select bin(3);
+--------+
| bin(3) |
+--------+
| 11 |
+--------+
1 row in set (0.02 sec)