ASCII

Returns the ASCII code value of the leftmost character of a character expression.

Syntax

ASCII ( character_expression )

Arguments

character_expression

Is an expression of the type char or varchar.

Return types

int

Example

SELECT ASCII('123');

See Also