Files
doris/docs/documentation/cn/sql-reference/sql-functions/string-functions/ascii.md
xy720 4c2a3d6da4 Merge Help document to documentation (#1586)
Help document collation (integration of help and documentation documents)
2019-08-07 21:31:53 +08:00

364 B

ascii

description

Syntax

INT ascii(VARCHAR str)

返回字符串第一个字符对应的 ascii 码

example

mysql> select ascii('1');
+------------+
| ascii('1') |
+------------+
|         49 |
+------------+

mysql> select ascii('234');
+--------------+
| ascii('234') |
+--------------+
|           50 |
+--------------+

##keyword ASCII