---
title: "REVERSE"
description: "La funzione SQL REVERSE inverte l\u0027ordine dei caratteri dell\u0027input."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/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:33Z
license: https://documentation.invantive.eu/it/
---

## Sintassi
```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))
```

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

-------------------
cba
```
L'esempio seguente inverte un testo già invertito, restituendo il testo originale:
```sql
select reverse(reverse('abc'))

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

