ASCII



Returns the numeric value of the leftmost character of the string str.

Syntax

ASCII(<expr>)

Arguments

ArgumentsDescription
<expr>The string.

Return Type

TINYINT

Examples

SELECT ASCII('2'); +------------+ | ASCII('2') | +------------+ | 50 | +------------+

Was this page helpful?