ASCII
Return the ASCII value of the first character. This function returns the numeric ASCII code for the leftmost character of the input string.
Syntax
ASCII(str)Description
Examples
SELECT ASCII(9);
+----------+
| ASCII(9) |
+----------+
| 57 |
+----------+
SELECT ASCII('9');
+------------+
| ASCII('9') |
+------------+
| 57 |
+------------+
SELECT ASCII('abc');
+--------------+
| ASCII('abc') |
+--------------+
| 97 |
+--------------+Last updated
Was this helpful?

