ASCII()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Returns the numeric ASCII value of the leftmost character of the given argument.
EXAMPLES
-- Note that .05 renders as 0.05
SELECT ASCII(.05), ASCII('0');
+------------+------------+
| ASCII(.05) | ASCII('0') |
+------------+------------+
| 48 | 48 |
+------------+------------+
SELECT ASCII('Foo'), ASCII('f');
+--------------+------------+
| ASCII('Foo') | ASCII('f') |
+--------------+------------+
| 70 | 102 |
+--------------+------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.