Skip to content
Related Articles

Related Articles

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:

  1. Oracle 12c
  2. Oracle 11g
  3. Oracle 10g
  4. 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 
My Personal Notes arrow_drop_up
Recommended Articles
Page :