---
title: "UUIDV4"
description: "Die SQL-Funktion UUIDV4 erzeugt eine neue zuf\u00E4llige UUID; sie ist ein anderer Name f\u00FCr NEWID."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/docs/invantive-universalsql/grammar/sql-functions/uuidv4
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/uuidv4
updated: 2026-12-04T14:45:07Z
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)) --> UUIDV4[UUIDV4]:::quoted
    UUIDV4 --> End((END))
```

## Anwendung
Die SQL-Funktion `UUIDV4` erstellt eine neue zufällige UUID der Version 4. Sie ist ein anderer Name für [[NEWID]] und entspricht der Funktion [[GEN_RANDOM_UUID]], wie sie in PostgreSQL unter dem Namen 18 bezeichnet wird.

Verfügbar ab Version 28.0.

Siehe auch [[UUIDV7]], [[UUID_EXTRACT_VERSION]] und [[NEWID]].

Rückgabewert: die neue UUID vom Datentyp `guid`. Jeder Aufruf erzeugt eine eigene UUID.

## Beispiele
Das folgende Beispiel erzeugt eine neue zufällige UUID und liest deren Version aus:
```sql
select uuid_extract_version(uuidv4()) version

-------
4
```

