ASCII_VAL()

Available in: DSQL, PSQL

Added in: 2.1

Description

Returns the ASCII code of the character passed in.

Result type: SMALLINT

Syntax

ASCII_VAL (<ch>) 

ch  ::=  a [VAR]CHAR or text BLOB of max. 32767 bytes

Important: If the external function ascii_val is declared in your database, it will override the internal function. To make the internal function available, DROP or ALTER the external function (UDF).