INITCAP
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> INITCAP[INITCAP]:::quoted
INITCAP --> End((END))
Purpose
The INITCAP SQL function changes the first character of each word in uppercase, all other characters in lowercase.
Parameters:
- Input (
varchar2): Text to process.
Returns: the input with the first letter of each word in uppercase as varchar2.
Examples
The following example changes the capitalisation of aap noot mies:
select initcap('aap noot mies')
----------------
Aap Noot Mies
The following example changes the capitalisation of JOHN DOE:
select initcap('JOHN DOE')
----------------
John Doe
The following example changes the capitalisation of 's-Hertogenbosch:
select initcap('''s-Hertogenbosch')
----------------
'S-Hertogenbosch