## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> ASCII[ASCII]:::quoted
ASCII --> End((END))
```
## Purpose
The `ASCII` SQL function gets the position of a character on the Unicode character set. See also [[CHR]].
Parameters:
- Input: character to get character set position for.
Returns: the position of the character on the Unicode character set.
## Examples
`ASCII` is used to retrieve the character position of the backtick:
```sql
select ascii('`')
--------
96
```
`ASCII` is used to retrieve the character position of the character 'A' and then reversed using `CHR`:
```sql
select chr(ascii('A'))
--------
A
```