In this post explains how to use the CHAR function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the CHAR function is the opposite of the ASCII function. It returns the character based on the NUMBER code.
The syntax for the CHAR function in SQL Server (Transact-SQL) is:
The ASCII NUMBER code used to retrieve the character.
The CHAR function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server CHAR function examples and explore how to use the CHAR function in SQL Server (Transact-SQL).
For example: