uuid function

Returns an universally unique identifier (UUID) string.

Syntax

uuid()

Arguments

The function takes no argument.

Returns

A STRING formatted as a canonical UUID 36-character string.

The function is non-deterministic.

Examples

> SELECT uuid();
 46707d92-02f4-4817-8116-a4c3b23e6266