Purpose
The function returns the ASCII value of the first character in the string expression.
Syntax
ASCII(char)
Parameters
Parameter |
Description |
|---|---|
| char | An expression of the CHAR, VARCHAR2, NCHAR, or NVARCHAR2 data type. |
Return type
The DELETE_SCHEMA_STATS procedure returns a value of the NUMBER data type.
Examples
Use the ASCII function to return the ASCII code values of A, a, and a space.
obclient> SELECT ASCII('A') A, ASCII('a') a, ASCII(' ') space FROM DUAL;
+------+------+-------+
| A | A | SPACE |
+------+------+-------+
| 65 | 97 | 32 |
+------+------+-------+
1 row in set
