This Oracle tutorial explains how to use the Oracle/PLSQL ASCIISTR function with syntax and examples.
The Oracle/PLSQL ASCIISTR function converts a string in any character set to an ASCII string using the database character set.
The syntax for the ASCIISTR function in Oracle/PLSQL is:
ASCIISTR( string )
A string in any character set that you want converted to an ASCII string in the database character set.
The ASCIISTR function returns a string value.
The ASCIISTR function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle ASCIISTR function examples and explore how to use the ASCIISTR function in Oracle/PLSQL.
For example:
ASCIISTR('A B C ')
Output: 'A B C \00C4 \00CA'
ASCIISTR('A B C ')
Output: 'A B C \00D5 \00D8'
ASCIISTR('A B C ')
Output: 'A B C \00C4 \00CA \00CD \00D5 \00D8'