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

ArgumentsDescription
<expr>The string.

Return Type

TINYINT

SQL Examples

SELECT ASCII('2');
┌────────────┐
 ASCII('2') 
├────────────┤
         50 
└────────────┘