Returns the integer ASCII value of the first byte in a string-expression.
ASCII ( string-expression )
The following statement returns the value 90, when the collation sequence is set to the default ISO_BINENG.
SELECT ASCII( 'Z' ) FROM iq_dummy
If the string is empty, then ASCII returns zero. Literal strings must be enclosed in quotes.