---
title: "CSVDECODE"
description: "La funzione SQL CSVDECODE restituisce il testo di input decodificato come CSV conforme a RFC 4180."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/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:32Z
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)) --> CSVDECODE[CSVDECODE]:::quoted
    CSVDECODE --> End((END))
```

## Scopo
La funzione SQL `CSVDECODE` restituisce il testo di input decodificato come CSV conforme a [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180):
- separatore di campo `,`
- separatore di record CR, LF e CR/LF
- carattere di virgolettatura `"`
- carattere di virgolettatura con escape `\"`
- nessuna intestazione

Vedi anche [[CSVENCODE]].

Parametri:
- Input (`varchar2`): l'input che verrà decodificato da CSV a testo.

Restituisce: un testo che corrisponde all'input decodificato da CSV come `varchar2`.

## Esempi
Il seguente esempio recupera la rappresentazione testuale del valore codificato in CSV `"a,b,c,d"`:
```sql
select csvdecode('"a,b,c,d"')

----------------
a,b,c,d
```
Il seguente esempio recupera la rappresentazione testuale del valore codificato in CSV `text`:
```sql
select csvdecode('text')

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

