---
title: "QUOTE_NULLABLE"
description: "La funzione SQL QUOTE_NULLABLE racchiude tra apici un testo per l\u0027uso come letterale all\u0027interno di una Query SQL, in modo identico a QUOTE_LITERAL."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/docs/invantive-universalsql/grammar/sql-functions/quote-nullable
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/quote-nullable
updated: 2026-12-04T14:13:04Z
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)) --> QUOTE_NULLABLE[QUOTE_NULLABLE]:::quoted
    QUOTE_NULLABLE --> End((END))
```

## Scopo
La funzione SQL `QUOTE_NULLABLE` racchiude un testo tra virgolette per utilizzarlo come letterale all'interno di una query SQL, in modo identico a [[QUOTE_LITERAL]]. Tuttavia, quando l'input è `null` o vuoto, la funzione restituisce `null`.

Vedi anche [[QUOTE_IDENT]] e [[QUOTE_LITERAL]].

Parametri:
- Letterale (`varchar2`): il testo da racchiudere tra virgolette.

Restituisce: il letterale racchiuso tra virgolette come `varchar2`. Restituisce `null` quando l'input è `null` o vuoto.

## Esempi
L'esempio seguente racchiude tra virgolette `abc`:
```sql
select quote_nullable('abc')

-------------------
"abc"
```
L'esempio seguente racchiude tra virgolette `null`; l'output è vuoto:
```sql
select quote_nullable(null)

-------------------

```

