SQL CHAR

SQL CHAR function is used to return a character of an int ASCII code.

SQL CHAR Function Syntax

CHAR (int)

SQL CHAR Function Example

SELECT CHAR(83) -- Return: S

SELECT CHAR(81) -- Return: Q

SELECT CHAR(76) -- Return: L

SELECT CHAR(45) -- Return: -

SELECT CHAR(100) -- Return: d

Leave a Comment