REVERSE
Sintassi
%%{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))
Scopo
La funzione SQL REVERSE inverte l'ordine dei dati in ingresso.
Parametri:
- Input (
varchar2): testo da capovolgere.
Restituisce: il testo con i caratteri in ordine inverso.
Esempi
L'esempio seguente inverte il testo dell'abc:
select reverse('abc')
-------------------
cba
L'esempio seguente inverte un testo già invertito, restituendo il testo originale:
select reverse(reverse('abc'))
-------------------
abc