CHAR
- Last Updated: December 12, 2014
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a character string with the first character having
an ASCII value equal to the argument expression. CHAR is
identical to CHR but provides ODBC‑compatible syntax.
Syntax
|
Notes
- The
argument to the function must be of type
INTEGER,TINYINT, orSMALLINT. - The result is of type
CHARACTER. - If the argument integer_expression evaluates
to
NULL, the result isNULL. - The
CHARandCHRfunctions are character‑set dependent and support single‑byte and multi‑byte characters. If integer_expression is a valid character encoding integer value in the current SQL server character set, the function returns the correct character. If it is not a valid character, the function returns aNULLvalue.
Example
This
example illustrates the CHAR function:
|
Compatibility
ODBC compatible