Files
doris/docs/en/sql-manual/sql-functions/string-functions/ascii.md
2022-05-07 19:16:59 +08:00

1.2 KiB

title, language
title language
ascii en

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 |
+--------------+

keywords

ASCII