ASCII
This function converts a character value to an int ASCII code.
Syntax​
ASCII ( string_expression )
Arguments​
string_expression
A valid string expression. If the string has more than one character, ASCII returns the code of the first character.
Return Type​
Returns values of type INT32.
Examples​
Examples in this section use the example blockchain.
The following example calculates the ASCII
for the specified components.
SELECT ASCII(str) FROM example;
Response:
CHAR(real) [STRING]
NULL
100
108
100