---
title: "REVERSA"
description: "La funci\u00F3n SQL REVERSE invierte el texto de entrada."
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/docs/invantive-universalsql/grammar/sql-functions/reverse
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/reverse
updated: 2026-12-04T14:20:29Z
license: https://documentation.invantive.eu/es/
---

## Sintaxis
```mermaid
%%{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`:
```sql
select reverse('abc')

-------------------
cba
```
El siguiente ejemplo invierte un texto invertido, devolviendo el texto original introducido:
```sql
select reverse(reverse('abc'))

-------------------
abc
```

