---
title: "QUOTE_NULLABLE"
description: "SQL-funktionen QUOTE_NULLABLE citerer en tekst til brug som literal i en SQL Query, identisk med QUOTE_LITERAL."
language: da
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/da/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:00Z
license: https://documentation.invantive.eu/da/
---

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

## Formål
SQL-funktionen `QUOTE_NULLABLE` citerer en tekst til brug som literal i en SQL Query, identisk med [[QUOTE_LITERAL]]. Men når inputtet er `null` eller tomt, returnerer funktionen `null`.

Se også [[QUOTE_IDENT]] og [[QUOTE_LITERAL]].

Parametre:
- Literal (`varchar2`): teksten, der skal citeres.

Returnerer: det citerede literal som `varchar2`. Returnerer `null`, når input er `null` eller tomt.

## Eksempler
Det følgende eksempel citerer `abc`:
```sql
select quote_nullable('abc')

-------------------
"abc"
```
Følgende eksempel citerer `null`; outputtet er tomt:
```sql
select quote_nullable(null)

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

```

