Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

ASCII

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:

Was this article helpful?