This Oracle tutorial explains how to use the Oracle/PLSQL TO_SINGLE_BYTE function with syntax and examples.
The Oracle/PLSQL TO_SINGLE_BYTE function returns a character value with all of the multibyte characters converted to single-byte characters. To use this function, your database character set contains both single-byte and multibyte characters.
The syntax for the TO_SINGLE_BYTE function in Oracle/PLSQL is:
A char, varchar2, nchar, or nvarchar2 value that will be converted to single-byte characters. This function will return its result in the same character set as char.
The TO_SINGLE_BYTE function returns a single byte value.
The TO_SINGLE_BYTE function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle TO_SINGLE_BYTE function examples and explore how to use the TO_SINGLE_BYTE function in Oracle/PLSQL.
For example:
The SQL statement above would return a single-byte character value.