Product Solutions Support
Try MemSQL

ASCII

Returns the ASCII value of the leftmost character of the given string.

ASCII (str)

Arguments

Info

ASCII only works with 8-bit characters.

Return Type

Integer, or NULL if str is NULL.

Examples

memsql> select ascii('abracadabra');
+----------------------+
| ascii('abracadabra') |
+----------------------+
|                   97 |
+----------------------+
Was this article useful?