VeloDB Cloud
SQL Manual
Functions
string-functions
ascii

ascii

Description

Syntax:

INT AXES (WARCHAR STR)

This function 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