REVERSE
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> REVERSE[REVERSE]:::quoted
REVERSE --> End((END))
Purpose
The REVERSE SQL function flips the input around.
Parameters:
- Input (
varchar2): text to flip around.
Returns: the text with its characters in reversed order.
Examples
The following example reverses the text abc:
select reverse('abc')
-------------------
cba
The following example reverses a reversed text, returning the original input:
select reverse(reverse('abc'))
-------------------
abc