Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 18, 2022
Send us feedback
bin
Returns the binary representation of expr.
expr
bin(expr)
expr: A BIGINT expression.
A STRING consisting of 1 and 0s.
1
0
> SELECT bin(13); 1101 > SELECT bin(-13); 1111111111111111111111111111111111111111111111111111111111110011 > SELECT bin(13.3); 1101