Progress
SQL-92
Guide and Reference
ASCII Function
Returns the ASCII value of the first character of the given character expression.
SYNTAX
EXAMPLE
The following example shows how to use the ASCII function:
NOTES
- The argument to the function must be of type CHARACTER.
- The result is of type INTEGER.
- If the argument
char_expression
evaluates to null, the result is null.- The ASCII function is character-set dependent, and supports multi-byte characters. The function returns the character encoding integer value of the first character of
char_expression
in the current character set. Ifchar_expression
is a literal string, the result is determined by the character set of the SQL client. Ifchar_expression
is a column in the database, the character set of the database determines the result.COMPATIBILITY
ODBC Compatible
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |