跳到主要内容

BIN

Returns a string representation of the binary value of N.

Syntax

BIN(<expr>)

Arguments

ArgumentsDescription
<expr>The number.

Return Type

VARCHAR

Examples

SELECT BIN(12);
+---------+
| BIN(12) |
+---------+
| 1100 |
+---------+
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册