Example
Return the character based on the number code 65:
SELECT CHAR(65) AS CodeToCharacter;
Definition and Usage
The CHAR() function returns the character based on the ASCII code.
Syntax
CHAR(code)
Return the character based on the number code 65:
SELECT CHAR(65) AS CodeToCharacter;
The CHAR() function returns the character based on the ASCII code.
CHAR(code)
Return the ASCII value of the first character in “CustomerName”:
SELECT ASCII(CustomerName) AS NumCodeOfFirstChar
FROM Customers;
The ASCII() function returns the ASCII value for the specific character.
ASCII(character)