RIGHT
Sintassi
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> | | RIGHT[RIGHT]:::quoted
RIGHT --> End((END))
Scopo
La funzione SQL RIGHT estrae una sottostringa da un testo utilizzando i caratteri presenti nella parte destra. Il testo di input originale viene fornito quando il testo contiene un numero di caratteri inferiore alla lunghezza desiderata.
Parametri:
- Input (
varchar2): testo da cui estrarre la sottostringa. - Lunghezza (
int32): lunghezza massima della sottostringa.
Restituisce: una sottostringa tratta dalla parte destra dell'input come varchar2.
Esempi
L'esempio seguente recupera i tre caratteri a destra di un testo:
select right('abcdefg', 3)
----------------
efg
L'esempio seguente estrae i nove caratteri a destra di un testo:
select right('abcdefg', 9)
----------------
abcdefg