Scalar function that returns the ASCII code of a character value.
Supported in SQL: |
Yes |
Supported in Navigational: |
No (use CHR) |
Syntax
ASCII(<str>) à nCode
Parameters
<str> A character string.
Return Values
ASCII() returns the ASCII code of the first character of the given string.
Remarks
ASCII() is a conversion function that converts a character to its ASCII code. It is the inverse of CHAR().
Note Binary and image fields are not supported by this function. Memo fields are supported by the SQL version of the scalar.
See Also