Skip to content

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

func.ascii(<expr>)
func.ascii('2')
┌─────────────────┐
│ func.ascii('2') │
├─────────────────┤
│ 50 │
└─────────────────┘
ASCII(<expr>)
Arguments Description
<expr> The string.

TINYINT

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