Skip to main content

CHAR

This function converts an int ASCII code to a character value.

Syntax

CHAR ( integer_expression ) 

Arguments

integer_expression
An integer from 0 through 255. CHAR returns a NULL value for integer expressions outside this range.

Return Type

Returns values of type STRING.

Examples

Examples in this section use the example blockchain.

The following example calculates the CHAR for the specified components.

SELECT CHAR(real) FROM example;

Response:

CHAR(real) [STRING]
NULL
NULL