Back to Starrocks

bin

docs/en/sql-reference/sql-functions/math-functions/bin.md

4.1.0375 B
Original Source

bin

Transforms the input arg into a binary.

Syntax

Shell
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

Plain
mysql> select bin(3);
+--------+
| bin(3) |
+--------+
| 11     |
+--------+
1 row in set (0.02 sec)