Skip to content

Returns a string representation of the binary value of N.

func.bin(<expr>)
func.bin(12)
┌──────────────┐
│ func.bin(12) │
├──────────────┤
1100
└──────────────┘
BIN(<expr>)
ArgumentsDescription
<expr>The number.

VARCHAR

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