CAMEL
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> CAMEL[CAMEL]:::quoted
CAMEL --> End((END))
Purpose
The CAMEL SQL function converts an identifier to camel case. Uppercase characters remain uppercase, and underscores (_) are eaten and replaced by the uppercase of the next character.
Parameters:
- Input (
varchar2): the identifier that will be converted to camel case.
Returns: An identifier converted to camel case as varchar2.
Examples
The following example camel cases the identifier set_project_code:
select camel('set_project_code')
--------------------
SetProjectCode
The following example camel cases the identifier abcd, uppercasing only the first character:
select camel('abcd')
--------
Abcd