The SQL function ASCII converts a character in the numeric ascii value. If the string is larger as one character then the ascii value of the first characters is return.
SQL Syntax: |
ASCII( string ) | |
Parameters: |
string
|
|
Escape Syntax: |
{fn ASCII( string )} | |
Return Type: |
INT | |
Examples:
SELECT ASCII('A'), {fn ascii('B')}
Return Values: 65, 66
see also:
SQL String Functions
CHAR