ASCII
Returns the numeric value of the leftmost character of the string str.
Analyze Syntax
func.ascii(<expr>)
Analyze Examples
func.ascii('2')
+-----------------+
| func.ascii('2') |
+-----------------+
| 50 |
+-----------------+
SQL Syntax
ASCII(<expr>)
Arguments
Arguments | Description |
---|---|
<expr> | The string. |
Return Type
TINYINT
SQL Examples
SELECT ASCII('2');
+------------+
| ASCII('2') |
+------------+
| 50 |
+------------+
Last modified March 27, 2024 at 3:17 PM EST: adding analyze syntax and examples placeholders for stings (4c6f489)