PLSQL | DECOMPOSE Function
Last Updated :
20 Sep, 2019
The DECOMPOSE Function in PLSQL is used for accepting a string and returning its Unicode string.
The DECOMPOSE Function is generally the opposite of the COMPOSE function.
The DECOMPOSE function is valid only for Unicode characters and it returns a Unicode string after decomposition in the same character set as the input.
The results of the inputs used can vary depending on the character set of the operating system used.
Syntax:
DECOMPOSE( string )
Parameters Used:
string – It is used to specify the string that needs to be decomposed.
Return Value:
The DECOMPOSE function returns a Unicode string.
Supported Versions of Oracle/PLSQL:
- Oracle 12c
- Oracle 11g
- Oracle 10g
- Oracle 9i
Example:
DECLARE
Test_String2 varchar(5) := 'â';
Test_String varchar(20) := 'Gèèksforgèèks';
BEGIN
dbms_output.put_line(DECOMPOSE(Test_String));
dbms_output.put_line(DECOMPOSE(Test_String2));
END;
Output:
a^
Ge´e´ksforge´e´ks
Share your thoughts in the comments
Please Login to comment...