![]() Previous |
![]() Next |
CHR converts an integer to the character with its binary equivalent in either the database character set or the national character set.
For single-byte character sets, if n > 256, then CHR converts the binary equivalent of mod(n, 256).
For the Unicode national character sets and all multibyte character sets, n must resolve to one entire code point. Code points are not validated, and the result of specifying invalid code points is indeterminate.
Arguments
n is a numeric expression.
USING NCHAR_CS returns a character in the national character set. Otherwise, the return value is in the database character set. The OLAP engine uses the UTF8 national character set, so the return value may be different from the SQL CHR function, which uses the database UTF16 national character set.