ascii({char})

Returns UTF-8 numeric value of the specified character. Returns null if {n} is null.

Example

This example returns the ASCII value for the letter “a.”

SELECT ASCII('C') as "asciiValue"
FROM "Superstore"
LIMIT 1;
asciiValue
67