# What is the CHR function in SQL?

The CHR function returns the character that has the ASCII code value that is specified by the argument. The CHR function is identical to the ASCII_CHR function. For more information, see ASCII_CHR scalar function.

Bron: [CHR scalar function - Db2 SQL - IBM](https://www.ibm.com/docs/en/db2-for-zos/12.0.0?topic=functions-chr#:~:text=The%20CHR%20function%20returns%20the,is%20specified%20by%20the%20argument.&text=The%20CHR%20function%20is%20identical,information%2C%20see%20ASCII_CHR%20scalar%20function.)

Onderwerp: [Techniek & internet](https://1001vragen.nl/onderwerp/techniek-en-internet)
Toegevoegd: 2026-01-26
Webpagina: https://1001vragen.nl/vraag/what-is-the-chr-function-in-sql

## What does the chr() function do?

Use the CHR( ) function to return the character associated with any ASCII code, including those characters that cannot be entered directly from a keyboard or displayed on screen. With CHR( ), you can search fields or records for the existence of these specific characters.

Bron: [CHR( ) function](https://help.highbond.com/helpdocs/analytics/141/scripting-guide/en-us/Content/lang_ref/functions/r_chr.htm#:~:text=Use%20the%20CHR(%20)%20function%20to,existence%20of%20these%20specific%20characters.)

## What does the SQL char() function do?

A string function that returns the character that has the ASCII code value specified in a string expression.

Bron: [CHAR (SQL) | InterSystems IRIS Data Platform 2025.3](https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_char#:~:text=A%20string%20function%20that%20returns,specified%20in%20a%20string%20expression.)

## What is chr 13 and chr 10?

char(13) is carriage return and char(10) is line feed.

Bron: [Article: What is the difference between char(13) and char(10)?](https://community.boomi.com/s/article/whatisthedifferencebetweenchar13andchar10#:~:text=char(13)%20is%20carriage%20return,(10)%20is%20line%20feed.)

## Verwante vragen

- [What is the function of CHR in Oracle?](https://1001vragen.nl/vraag/what-is-the-function-of-chr-in-oracle.md)
- [What is char 13 and chr 10 in sql server?](https://1001vragen.nl/vraag/what-is-char-13-and-chr-10-in-sql-server.md)
- [What is Chr 9 in Oracle?](https://1001vragen.nl/vraag/what-is-chr-9-in-oracle.md)
- [What is chr 32 in Oracle?](https://1001vragen.nl/vraag/what-is-chr-32-in-oracle.md)
- [How to use case function in SQL?](https://1001vragen.nl/vraag/how-to-use-case-function-in-sql.md)
- [Which functions can be used to manipulate character number and date column values?](https://1001vragen.nl/vraag/which-functions-can-be-used-to-manipulate-character-number-and-date-column-values.md)
- [What is the CAST function in Oracle?](https://1001vragen.nl/vraag/what-is-the-cast-function-in-oracle.md)
- [How to use conversion function?](https://1001vragen.nl/vraag/how-to-use-conversion-function.md)
- [How to use the CAST function in SQL?](https://1001vragen.nl/vraag/how-to-use-the-cast-function-in-sql.md)
- [Which function is used to concatenate two or more strings?](https://1001vragen.nl/vraag/which-function-is-used-to-concatenate-two-or-more-strings.md)
