Files
doris/docs/documentation/en/sql-reference/sql-functions/string-functions/ascii_EN.md

1.1 KiB

ASCII

Description

Syntax

INT AXES (WARCHAR STR)

Returns the ASCII code corresponding to the first character of the string

example

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

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

##keyword ASCII