PLSQL | DECOMPOSE Function

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

I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.