UUID_STRING

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functionsData generation functions

Generates either a version 4 (random) or version 5 (named) RFC 4122-compliant universally unique identifier (UUID) as a formatted string.

Syntax

UUID_STRING()

UUID_STRING( '<uuid>' , '<name>' )

Parameters

NameRequiredDescription
'uuid'requiredA valid UUID string. This value is the namespace used to generate the returned UUID.
'name'requiredThe name used to generate the returned UUID.

Returns

This function returns a 128-bit value, formatted as a string (VARCHAR data type).

Usage notes