BIN (Lakehouse v1)
Returns a string representation of the binary value of N.
Analyze Syntax
Section titled “Analyze Syntax”func.bin(<expr>)Analyze Examples
Section titled “Analyze Examples”func.bin(12)┌──────────────┐│ func.bin(12) │├──────────────┤│ 1100 │└──────────────┘SQL Syntax
Section titled “SQL Syntax”BIN(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | The number. |
Return Type
Section titled “Return Type”VARCHAR
SQL Examples
Section titled “SQL Examples”SELECT BIN(12);┌─────────┐│ BIN(12) │├─────────┤│ 1100 │└─────────┘