Skip to content

CHR

  • n: This is an integer parameter that represents the Unicode value of the character this function returns. It ranges from 0 to 65535. The CHR(N) function converts the Unicode integer to a character before returning it.
SELECT CHR(65) FROM dual;
A

The CHR function in Oracle SQL returns the character based on the ASCII value. In the example, CHR(65) converts the ASCII value 65 to the corresponding character, which is ‘A’.