BIN
Returns a string representation of the binary value of N.
Analyze Syntax
func.bin(<expr>)
Analyze Examples
func.bin(12)
+--------------+
| func.bin(12) |
+--------------+
| 1100 |
+--------------+
SQL Syntax
BIN(<expr>)
Arguments
Arguments | Description |
---|---|
<expr> | The number. |
Return Type
VARCHAR
SQL Examples
SELECT BIN(12);
+---------+
| BIN(12) |
+---------+
| 1100 |
+---------+
Last modified March 27, 2024 at 3:17 PM EST: adding analyze syntax and examples placeholders for stings (4c6f489)