tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment
Share this page:

Oracle/PLSQL: ASCII Function

Learn how to use the Oracle/PLSQL ASCII function with syntax and examples.


The Oracle/PLSQL ASCII function returns the NUMBER code that represents the specified character.


The syntax for the Oracle/PLSQL ASCII function is:

ASCII( single_character )

Parameters or Arguments

single_character is the specified character to retrieve the NUMBER code for. If more than one character is entered, the ASCII function will return the value for the first character and ignore all of the characters after the first.

Applies To

The ASCII function can be used in the following versions of Oracle/PLSQL:

  • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i


Let's look at some Oracle ASCII function examples and explore how to use the ASCII function in Oracle/PLSQL.

For example:

ASCII('t') would return 116
ASCII('T') would return 84
ASCII('T2') would also return 84

View a listing of the ASCII values.