---
title: "REVERSE"
description: "REVERSE SQL\u95A2\u6570\u306F\u5165\u529B\u3092\u53CD\u8EE2\u3055\u305B\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/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:35Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```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))
```

## 目的
`REVERSE` SQL関数は入力を反転させます。

パラメータ:
- 入力(`varchar2`): 反転させるテキスト。

戻り値: 文字を逆順に並べたテキスト。

## 例
次の例では、テキスト `abc` を反転させます:
```sql
select reverse('abc')

-------------------
cba
```
次の例では、反転されたテキストをさらに反転させ、元の入力を返します:
```sql
select reverse(reverse('abc'))

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

