---
title: "CHR"
description: "The CHR SQL function gets a character from the Unicode database character set specified by its numeric position."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/chr
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/chr
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> CHR[CHR]:::quoted
    CHR --> End((END))
    Start((START)) --> CHAR[CHAR]:::quoted
    CHAR --> End((END))
```

## Purpose
The `CHR` SQL function gets a character from the Unicode database character set specified by its numeric position.

Parameters:
- Input (`int32`): a numeric value of the character in the Unicode character set.

Returns: A character from the Unicode database character set as `varchar2`.

## Examples
The following example retrieves a backtick using the position 96:
```sql
select chr(96)

--------
`
```
The following example retrieves a carriage return plus linefeed:
```sql
select chr(13) || chr(10)

--------
...
```

