Documentación de Invantiveparte de Invantive Cloud
Foros de Soporte de InvantiveIniciar Sesión / Registrarse

REVERSA

Sintaxis

%%{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))

Propósito

La función SQL REVERSE invierte el orden de la entrada.

Parámetros:

  • Entrada (varchar2): texto que se va a voltear.

Devuelve: el texto con los caracteres en orden inverso.

Ejemplos

El siguiente ejemplo invierte el texto de la imagen abc:

select reverse('abc')

-------------------
cba

El siguiente ejemplo invierte un texto invertido, devolviendo el texto original introducido:

select reverse(reverse('abc'))

-------------------
abc