The string in PL/SQL is actually a sequence of characters with an optional size specification.
The characters could be numeric, letters, blank, special characters or a combination of all.
The Compose Function in PLSQL is used to return a Unicode string.
The unistring values that can be combined with other characters in the compose function are:
- unistr(‘\0300’) – grave accent ( ` )
- unistr(‘\0301’) – acute accent ( ´ )
- unistr(‘\0302’) – circumflex ( ^ )
- unistr(‘\0303’) – tilde ( ~ )
- unistr(‘\0308’) – umlaut ( ¨ )
Syntax:
COMPOSE( string )
Parameters Used:
string – It is used to specify the input value whose Unicode string needs to be created.
Supported Versions of Oracle/PLSQL:
- Oracle 12c
- Oracle 11g
- Oracle 10g
- Oracle 9i
Example:
DECLARE
Test_Char char := 'a';
Test_Char2 char := 'e';
BEGIN
dbms_output.put_line(COMPOSE(Test_Char || unistr('\0308' )));
dbms_output.put_line(COMPOSE(Test_Char || unistr('\0301' )));
dbms_output.put_line(COMPOSE(Test_Char || unistr('\0303' )));
dbms_output.put_line(COMPOSE(Test_Char2 || unistr('\0302' )));
END;
Output:
ä á ã ê
Recommended Posts:
- PLSQL | LOG Function
- PLSQL | INSTR Function
- PLSQL | INSTRB Function
- PLSQL | LENGTH2 Function
- PLSQL | SOUNDEX Function
- PLSQL | ASCII Function
- PLSQL | CONCAT Function
- PLSQL | CHR Function
- PLSQL | ASCIISTR Function
- PLSQL | CONVERT Function
- PLSQL | DECOMPOSE Function
- PLSQL | DUMP Function
- PLSQL | INITCAP Function
- PLSQL | LENGTHC Function
- PLSQL | LENGTHB Function
- PLSQL | LENGTH4 Function
- PLSQL | LENGTH Function
- PLSQL | LPAD Function
- PLSQL | INSTRC Function
- PLSQL | LTRIM Function
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.

