---
title: "NVL"
description: "Die SQL-Funktion NVL fasst alle Werte zusammen."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/docs/invantive-universalsql/grammar/sql-functions/nvl
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/nvl
updated: 2026-12-04T14:07:38Z
license: https://documentation.invantive.eu/de/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> NVL[NVL]:::quoted
    NVL --> End((END))
```

## Anwendung
Die SQL-Funktion `NVL` fasst alle Werte zusammen.

Siehe auch [[COALESCE]].

Parameter:
- Position 1 (`ANY`): ein Wert.
- Position n (optional, `ANY`): weitere Werte.

Rückgabewert: Alle Werte werden zusammengefasst.

## Beispiele
Das folgende Beispiel ruft den ersten Wert ab, der nicht `null` ist:
```sql
select nvl(null, 'a')

-------------------
a
```
Das folgende Beispiel ruft den ersten Wert aus einer längeren Liste von Werten ab, der nicht `null` lautet:
```sql
select nvl(null, null, 'b', null, null)

-------------------
b
```

