SQL Server CHAR() Function
Example
Return the character based on the number code 65:
SELECT CHAR(65) AS NumberCodeToCharacter;
Try it Yourself »
Definition and Usage
The CHAR() function returns the character based on the number code.
Syntax
CHAR(number_code)
Parameter Values
Parameter | Description |
---|---|
number_code | Required. The ASCII number code to return the character for |
Technical Details
Works in: | SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005 |
---|