跳到主要内容

ASCII

Returns the numeric value of the leftmost character of the string str.

Syntax

ASCII(<expr>)

Arguments

ArgumentsDescription
<expr>The string.

Return Type

TINYINT

Examples

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