---
title: "CSVDECODE"
description: "CSVDECODE SQL\u95A2\u6570\u306F\u3001RFC 4180\u306B\u6E96\u62E0\u3057\u305FCSV\u3068\u3057\u3066\u30A8\u30F3\u30B3\u30FC\u30C9\u3055\u308C\u305F\u5165\u529B\u30C6\u30AD\u30B9\u30C8\u3092\u30C7\u30B3\u30FC\u30C9\u3057\u305F\u30C6\u30AD\u30B9\u30C8\u3092\u8FD4\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/grammar/sql-functions/csvdecode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/csvdecode
updated: 2026-12-04T13:29:37Z
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)) --> CSVDECODE[CSVDECODE]:::quoted
    CSVDECODE --> End((END))
```

## 目的
`CSVDECODE` SQL関数は、[RFC 4180](https://www.rfc-editor.org/rfc/rfc4180)に準拠したCSVとしてエンコードされた入力テキストをデコードしたテキストを返します:
- フィールド区切り文字 `,`
- レコード区切り文字 CR、LF、CR/LF
- 引用符文字 `"`
- エスケープされた引用符文字 `\"`
- ヘッダーなし

参照：[[CSVENCODE]]。

パラメータ:
- 入力 (`varchar2`): CSVからテキストにデコードされる入力。

戻り値: `varchar2`としてCSVデコードされた入力であるテキスト。

## 例
次の例は、CSVエンコードされた値 `"a,b,c,d"` のテキスト表現を取得します:
```sql
select csvdecode('"a,b,c,d"')

----------------
a,b,c,d
```
次の例は、CSVエンコードされた値 `text` のテキスト表現を取得します:
```sql
select csvdecode('text')

----------------
text
```

