ASCII (Lakehouse v1)
Returns the numeric value of the leftmost character of the string str.
Analyze Syntax
Section titled “Analyze Syntax”func.ascii(<expr>)Analyze Examples
Section titled “Analyze Examples”func.ascii('2')┌─────────────────┐│ func.ascii('2') │├─────────────────┤│ 50 │└─────────────────┘SQL Syntax
Section titled “SQL Syntax”ASCII(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | The string. |
Return Type
Section titled “Return Type”TINYINT
SQL Examples
Section titled “SQL Examples”SELECT ASCII('2');┌────────────┐│ ASCII('2') │├────────────┤│ 50 │└────────────┘