Character String Functions Oracle PLSQL Tutorial

The general format for this function is: ASCII(string)

SQL>
SQL> SELECT ASCII('first') FROM dual;
ASCII('FIRST')
--------------
           102