# What is char 13 and chr 10 in sql server?

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.)

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

## What is CHAR 13 in SQL?

The char() function in SQL returns a string consisting of a single character specified by its ASCII code value. For example, char(13) returns a string containing the ASCII character with code value 13, which is a carriage return (CR).

Bron: [SQL char(13) + char(10) wont add new line : r/AskProgramming](https://www.reddit.com/r/AskProgramming/comments/zz10fi/sql_char13_char10_wont_add_new_line/#:~:text=The%20char()%20function%20in,a%20carriage%20return%20(CR).)

## What does chr 10 mean in SQL?

Insert SQL carriage return and line feed in a string In SQL Server, we can use the CHAR function with ASCII number code. We can use the following ASCII codes in SQL Server: Char(10) – New Line / Line Break. Char(13) – Carriage Return.

Bron: [SQL Carriage Returns or Tabs in SQL Server strings](https://www.sqlshack.com/sql-carriage-return-or-tab-in-sql-server-string/#:~:text=Insert%20SQL%20carriage%20return%20and%20line%20feed%20in%20a%20string&text=In%20SQL%20Server%2C%20we%20can,Char(13)%20%E2%80%93%20Carriage%20Return)

## What character is CHAR 13?

Bron: [ASCII Character Chart with Decimal, Binary and Hexadecimal Conversions](https://www.eso.org/~ndelmott/ascii.html)

## What is a CHAR 10?

You can use CHAR(10) to add a line break within a formula.

Bron: [CHAR Function - Smartsheet Learning Center](https://help.smartsheet.com/function/char#:~:text=You%20can%20use%20CHAR(10,line%20break%20within%20a%20formula.)

## Verwante vragen

- [How to convert char to number in PL/SQL?](https://1001vragen.nl/vraag/how-to-convert-char-to-number-in-pl-sql.md)
- [How to use to_char in SELECT query?](https://1001vragen.nl/vraag/how-to-use-to-char-in-select-query.md)
- [What is the CHR function in SQL?](https://1001vragen.nl/vraag/what-is-the-chr-function-in-sql.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)
- [What is the function of CHR in Oracle?](https://1001vragen.nl/vraag/what-is-the-function-of-chr-in-oracle.md)
- [What is error code 1073548784 in SQL Server?](https://1001vragen.nl/vraag/what-is-error-code-1073548784-in-sql-server.md)
- [How to solve performance issues in SQL Server?](https://1001vragen.nl/vraag/how-to-solve-performance-issues-in-sql-server.md)
- [What is the maximum server memory 2147483647 in SQL Server?](https://1001vragen.nl/vraag/what-is-the-maximum-server-memory-2147483647-in-sql-server.md)
- [How to set value for uniqueidentifier in SQL Server?](https://1001vragen.nl/vraag/how-to-set-value-for-uniqueidentifier-in-sql-server.md)
