Converts a Unicode code point value into a string character. The inverse of the ASCII function.
STRINGDiperbarui: 13 Jun 2026CHR(value)Unicode code point (0 to 0x10FFFF)
1 SELECT 2 CHR(65) as char_a, 3 CHR(97) as char_lower_a, 4 CHR(9731) as snowman;
Convert code points to characters.
| char_a | char_lower_a | snowman |
|---|---|---|
| A | a | ☃ |
1 SELECT 2 STRING_AGG(CHR(code), '') as alphabet 3 FROM UNNEST(GENERATE_ARRAY(65, 90)) as code;
Generate the A–Z alphabet string.
1 SELECT 2 CONCAT('Line 1', CHR(10), 'Line 2') as with_newline;
Insert a newline character into a string.
Sudah paham CHR? Latih langsung di browser
Latihan interaktif, langsung di browser.