Skip to main content

ASCII

Returns the numeric value of the leftmost character of the string str.

Syntax

ASCII(<expr>)

Arguments

ArgumentsDescription
<expr>The string.

Return Type

TINYINT

Examples

SELECT ASCII('2');
+------------+
| ASCII('2') |
+------------+
| 50 |
+------------+
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today