UUID

Updated at:
Copy as MD

Returns a random ID, such as 29347a88-1e57-41ae-bb68-a9edbdd9****.

Syntax

string uuid()
Note

The return value is a random global ID. The UUID is unique in most cases, but uniqueness is not guaranteed.

Example

SELECT uuid();

Output:

29347a88-1e57-41ae-bb68-a9edbdd9****

Related functions

For more information, see Other functions.