CHR

All functions > STRING > CHR

Returns the character corresponding to the given Unicode code point.

Signatures

Returns: The character corresponding to the code point

CHR(code_point: BIGINT) → VARCHAR
sql
ParameterTypeRequiredDescription
code_pointBIGINTYesA BIGINT representing the Unicode code point

Notes

  • Valid code points range from 0 to 1114111 (0x10FFFF)
  • Returns NULL if the input is NULL
  • Invalid code points may result in an error or undefined behavior
  • This is the inverse operation of CODEPOINT

Examples

FeatureQL
SELECT
    f1 := CHR(65),  -- ASCII character 'A'
    f2 := CHR(97),  -- ASCII character 'a'
    f3 := CHR(48),  -- ASCII character '0'
    f4 := CHR(8364),  -- Euro symbol
    f5 := CHR(128512)  -- Emoji character
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHARf5 VARCHAR
Aa0😀

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19