Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
ASCII
On this page
The ASCII() function returns the ASCII value of the leftmost character of the given string.
Syntax
ASCII (str)
Arguments
-
str: any string or binary object
Note
ASCII only works with 8-bit characters.
Return Type
Integer, or NULL if str is NULL.
Examples
SELECT ASCII('abracadabra');
+----------------------+
| ASCII('abracadabra') |
+----------------------+
| 97 |
+----------------------+Last modified: