Skip to main content
Returns a version 4 universally unique identifier (UUID) as defined by RFC-4122 as a TEXT value. This function accepts no arguments.

Syntax

Return Type

GEN_RANDOM_UUID_TEXT returns a result of type TEXT.

Example

The following code example generates a random UUID as a TEXT value:

Rows: 1Execution time: 5.27ms