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

ArgumentsDescription
<expr>The number.

Return Type

VARCHAR

SQL Examples

SELECT BIN(12);
┌─────────┐
 BIN(12) 
├─────────┤
 1100    
└─────────┘